summaryrefslogtreecommitdiff
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2018-02-23 13:38:33 -0800
committerAman Gupta <aman@tmm1.net>2018-02-23 13:47:29 -0800
commit4f40d64e009869441ee63dad00b41e0a5bf7634d (patch)
treeb150840fc66707038bd894dfce015dc8dbb745c1 /libavformat/mpegts.c
parent61ecfbc32aa2a5d02bd90a298496bf1b6ecb0762 (diff)
avformat/mpegts: set AV_DISPOSITION_DEPENDENT for mix_type=0 supplementary audio
Signed-off-by: Aman Gupta <aman@tmm1.net>
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index bca7a7af4e..37a6aa8bff 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -1904,6 +1904,9 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type
return AVERROR_INVALIDDATA;
flags = get8(pp, desc_end);
+ if ((flags & 0x80) == 0) /* mix_type */
+ st->disposition |= AV_DISPOSITION_DEPENDENT;
+
switch ((flags >> 2) & 0x1F) { /* editorial_classification */
case 0x01:
st->disposition |= AV_DISPOSITION_VISUAL_IMPAIRED;