From: Thiago Santos Date: Fri, 29 Jan 2010 12:49:48 +0000 (-0300) Subject: qtdemux: Adds more h264 fields to its caps X-Git-Tag: 1.19.3~509^2~7136^2~824 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3d96f40f6a416477defa72386ff675263c42fb44;p=platform%2Fupstream%2Fgstreamer.git qtdemux: Adds more h264 fields to its caps Adds alignment=au and stream-format=avc to h264 caps Fixes #606662 --- diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c index 64a9d44..a992fb9 100644 --- a/gst/qtdemux/qtdemux.c +++ b/gst/qtdemux/qtdemux.c @@ -8706,7 +8706,9 @@ gst_qtdemux_handle_esds (GstQTDemux * qtdemux, QtDemuxStream * stream, break; /* Nothing special needed here */ case 0x21: /* H.264 */ codec_name = "H.264 / AVC"; - caps = gst_caps_new_simple ("video/x-h264", NULL); + caps = gst_caps_new_simple ("video/x-h264", + "stream-format", G_TYPE_STRING, "avc", + "alignment", G_TYPE_STRING, "au", NULL); break; case 0x40: /* AAC (any) */ case 0x66: /* AAC Main */ @@ -9060,7 +9062,9 @@ qtdemux_video_caps (GstQTDemux * qtdemux, QtDemuxStream * stream, break; case GST_MAKE_FOURCC ('a', 'v', 'c', '1'): _codec ("H.264 / AVC"); - caps = gst_caps_new_simple ("video/x-h264", NULL); + caps = gst_caps_new_simple ("video/x-h264", + "stream-format", G_TYPE_STRING, "avc", + "alignment", G_TYPE_STRING, "au", NULL); break; case GST_MAKE_FOURCC ('r', 'l', 'e', ' '): _codec ("Run-length encoding");