avcodecmap: Make avdec_mjpeg requires a parsed input

Actually avdec_mjpeg does not deal well with incomplete buffers and try
to decode incomplete frames. A parser which will also acts as
an accumulator needs to be inserted before it.

https://bugzilla.gnome.org/show_bug.cgi?id=709352
This commit is contained in:
Matthieu Bouron 2013-10-03 15:25:30 +01:00 committed by Sebastian Dröge
parent 5b76550168
commit 4c93bffb21

View file

@ -933,7 +933,7 @@ gst_ffmpeg_codecid_to_caps (enum CodecID codec_id,
case AV_CODEC_ID_LJPEG:
caps =
gst_ff_vid_caps_new (context, NULL, codec_id, encode, "image/jpeg",
NULL);
"parsed", G_TYPE_BOOLEAN, 1, NULL);
break;
case AV_CODEC_ID_SP5X: