uses version header to check for AV_CODEC_ID_MJPEG