From 3c47f584e2579abd76c3617e397417f8d8782320 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 25 Jul 2012 11:55:21 +0200 Subject: [PATCH] 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 --- ext/ffmpeg/gstffmpegcodecmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/ffmpeg/gstffmpegcodecmap.c b/ext/ffmpeg/gstffmpegcodecmap.c index eaefd74242..03eb440655 100644 --- a/ext/ffmpeg/gstffmpegcodecmap.c +++ b/ext/ffmpeg/gstffmpegcodecmap.c @@ -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: