OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2db6b5
)
mpegtsenc: set audio_type according to st->disposition
author
Anssi Hannula
<anssi.hannula@iki.fi>
Mon, 14 Feb 2011 18:43:41 +0000
(18:43 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 15 Feb 2011 15:32:32 +0000
(16:32 +0100)
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit
3f2d3a1904c1ccdfdc3bd03a6dd6567986f681d9
)
libavformat/mpegtsenc.c
patch
|
blob
|
history
diff --git
a/libavformat/mpegtsenc.c
b/libavformat/mpegtsenc.c
index
b1bccd1
..
6945b4b
100644
(file)
--- a/
libavformat/mpegtsenc.c
+++ b/
libavformat/mpegtsenc.c
@@
-289,6
+289,13
@@
static void mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
*q++ = lang->value[0];
*q++ = lang->value[1];
*q++ = lang->value[2];
+ if (st->disposition & AV_DISPOSITION_CLEAN_EFFECTS)
+ *q++ = 0x01;
+ else if (st->disposition & AV_DISPOSITION_HEARING_IMPAIRED)
+ *q++ = 0x02;
+ else if (st->disposition & AV_DISPOSITION_VISUAL_IMPAIRED)
+ *q++ = 0x03;
+ else
*q++ = 0; /* undefined type */
}
break;