Commit e2db6b59 authored by Anssi Hannula's avatar Anssi Hannula Committed by Michael Niedermayer

mpegts: set st->disposition according to ISO 639 language descriptor

Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
(cherry picked from commit 60e73066)
parent 3c9fcab5
...@@ -954,6 +954,11 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type ...@@ -954,6 +954,11 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type
language[2] = get8(pp, desc_end); language[2] = get8(pp, desc_end);
language[3] = 0; language[3] = 0;
av_metadata_set2(&st->metadata, "language", language, 0); av_metadata_set2(&st->metadata, "language", language, 0);
switch (get8(pp, desc_end)) {
case 0x01: st->disposition |= AV_DISPOSITION_CLEAN_EFFECTS; break;
case 0x02: st->disposition |= AV_DISPOSITION_HEARING_IMPAIRED; break;
case 0x03: st->disposition |= AV_DISPOSITION_VISUAL_IMPAIRED; break;
}
break; break;
case 0x05: /* registration descriptor */ case 0x05: /* registration descriptor */
st->codec->codec_tag = bytestream_get_le32(pp); st->codec->codec_tag = bytestream_get_le32(pp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment