mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-09-03 10:43:55 +00:00
h264parse: tweak default setting of format and alignment in codec_data case
... which should promote ending up in passthrough mode.
This commit is contained in:
parent
0882adc69f
commit
7cfdc7e912
1 changed files with 2 additions and 2 deletions
|
@ -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
|
/* if upstream sets codec_data without setting stream-format and alignment, we
|
||||||
* assume stream-format=avc,alignment=au */
|
* 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;
|
format = GST_H264_PARSE_FORMAT_AVC;
|
||||||
|
if (align == GST_H264_PARSE_ALIGN_NONE)
|
||||||
align = GST_H264_PARSE_ALIGN_AU;
|
align = GST_H264_PARSE_ALIGN_AU;
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
GST_DEBUG_OBJECT (h264parse, "have bytestream h264");
|
GST_DEBUG_OBJECT (h264parse, "have bytestream h264");
|
||||||
/* nothing to pre-process */
|
/* nothing to pre-process */
|
||||||
|
|
Loading…
Reference in a new issue