summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2014-08-21 12:32:10 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2014-08-25 13:37:57 -0300
commit9b6c8a48b4d20ffab2bd77b37591b8a62e02dde8 (patch)
treed1b67dda4d3a2a2308b29c4e30925dc18af41236
parent30a51ca54771a10e18031c93c3d206892f18b724 (diff)
h264parse: don't consider unknown stream-format as avc
It should try to use bytestream in these cases that the format is set to _FORMAT_NONE as it seems that is what the 'else' clause for bytestream can handle (by defaulting to _FORMAT_BYTESTREAM).
-rw-r--r--gst/videoparsers/gsth264parse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c
index 697ff87a0..c84c620f5 100644
--- a/gst/videoparsers/gsth264parse.c
+++ b/gst/videoparsers/gsth264parse.c
@@ -1860,8 +1860,9 @@ gst_h264_parse_set_caps (GstBaseParse * parse, GstCaps * caps)
gst_h264_parse_format_from_caps (caps, &format, &align);
/* packetized video has a codec_data */
- if (format != GST_H264_PARSE_FORMAT_BYTE &&
- (value = gst_structure_get_value (str, "codec_data"))) {
+ if ((format == GST_H264_PARSE_FORMAT_AVC
+ || format == GST_H264_PARSE_FORMAT_AVC3)
+ && (value = gst_structure_get_value (str, "codec_data"))) {
GstMapInfo map;
guint8 *data;
guint num_sps, num_pps;