summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>2020-10-05 11:07:25 +0200
committerTim-Philipp Müller <tim@centricular.com>2020-10-12 11:17:13 +0000
commit8fabd98be97480530a14421dbdab83cbe8eb4f68 (patch)
treed4bfca3cdbc58316bf2536b00b806cf8a999179b
parent824ec8995f23b64cf179feb85839a85e14c07344 (diff)
h265parse: set interlace-mode=interleaved on interlaced content
interlace-mode=alternate is a special case of interlace-mode=interleaved where the fields are split using two different buffers. We should use the latter instead of the former to no break compat with elements supporting only 'interleaved'. Decoders producing alternate, such as OMX on the Zynq, should change the interlace-mode on their output caps. Fix https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues/825 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1683>
-rw-r--r--gst/videoparsers/gsth265parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/videoparsers/gsth265parse.c b/gst/videoparsers/gsth265parse.c
index 58d3d2478..0df3a89cf 100644
--- a/gst/videoparsers/gsth265parse.c
+++ b/gst/videoparsers/gsth265parse.c
@@ -2200,8 +2200,8 @@ gst_h265_parse_update_src_caps (GstH265Parse * h265parse, GstCaps * caps)
gst_caps_set_simple (caps, "profile", G_TYPE_STRING, profile, NULL);
if (sps->profile_tier_level.interlaced_source_flag)
- gst_caps_set_simple (caps, "interlace-mode", G_TYPE_STRING, "alternate",
- NULL);
+ gst_caps_set_simple (caps, "interlace-mode", G_TYPE_STRING,
+ "interleaved", NULL);
tier = get_tier_string (sps->profile_tier_level.tier_flag);
if (tier != NULL)