avdec: require alignment=au for h264

Because we don't use a parser anymore we need to make sure that we feed the
decoder with full frames. For h264, require that we are aligned on access
units.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=680540
This commit is contained in:
Wim Taymans 2012-07-25 11:55:21 +02:00
parent 2d458ca951
commit 3c47f584e2

View file

@ -918,7 +918,8 @@ gst_ffmpeg_codecid_to_caps (enum CodecID codec_id,
case CODEC_ID_H264:
caps =
gst_ff_vid_caps_new (context, codec_id, encode, "video/x-h264", NULL);
gst_ff_vid_caps_new (context, codec_id, encode, "video/x-h264",
"alignment", G_TYPE_STRING, "au", NULL);
break;
case CODEC_ID_INDEO5: