From: Thiago Santos Date: Tue, 8 Jan 2013 13:16:23 +0000 (-0300) Subject: mssdemux: also consider fourcc AVC1 as H264 X-Git-Tag: 1.19.3~507^2~13724 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=013c11f7dd6695b4841f37a5db675d343f229ed7;p=platform%2Fupstream%2Fgstreamer.git mssdemux: also consider fourcc AVC1 as H264 H264 can be represented by both fourccs H264 and AVC1, use both. --- diff --git a/ext/smoothstreaming/gstmssmanifest.c b/ext/smoothstreaming/gstmssmanifest.c index 99d2433285..ec845d470c 100644 --- a/ext/smoothstreaming/gstmssmanifest.c +++ b/ext/smoothstreaming/gstmssmanifest.c @@ -236,7 +236,7 @@ _gst_mss_stream_video_caps_from_fourcc (gchar * fourcc) if (!fourcc) return NULL; - if (strcmp (fourcc, "H264") == 0) { + if (strcmp (fourcc, "H264") == 0 || strcmp (fourcc, "AVC1") == 0) { return gst_caps_new_simple ("video/x-h264", "stream-format", G_TYPE_STRING, "avc", NULL); } else if (strcmp (fourcc, "WVC1") == 0) { @@ -396,7 +396,7 @@ _gst_mss_stream_video_caps_from_qualitylevel_xml (xmlNodePtr node) NULL); if (codec_data && strlen (codec_data)) { - if (strcmp (fourcc, "H264") == 0) { + if (strcmp (fourcc, "H264") == 0 || strcmp (fourcc, "AVC1") == 0) { _gst_mss_stream_add_h264_codec_data (caps, codec_data); } else { GValue *value = g_new0 (GValue, 1);