From 7cfdc7e912833ea8025857ebf37c2433f94ff4ce Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Fri, 6 Apr 2012 14:27:06 +0200 Subject: [PATCH] h264parse: tweak default setting of format and alignment in codec_data case ... which should promote ending up in passthrough mode. --- gst/videoparsers/gsth264parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c index af0afac..bfdc4d4 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -1640,10 +1640,10 @@ gst_h264_parse_set_caps (GstBaseParse * parse, GstCaps * caps) /* if upstream sets codec_data without setting stream-format and alignment, we * assume stream-format=avc,alignment=au */ - if (format == GST_H264_PARSE_FORMAT_NONE) { + if (format == GST_H264_PARSE_FORMAT_NONE) format = GST_H264_PARSE_FORMAT_AVC; + if (align == GST_H264_PARSE_ALIGN_NONE) align = GST_H264_PARSE_ALIGN_AU; - } } else { GST_DEBUG_OBJECT (h264parse, "have bytestream h264"); /* nothing to pre-process */ -- 2.7.4