projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be0e596
)
mpegtsenc: Write subtitle extradata if set
author
Tomas Härdin
<tomas.hardin@codemill.se>
Mon, 27 Sep 2010 12:27:23 +0000
(12:27 +0000)
committer
Tomas Härdin
<tomas.hardin@codemill.se>
Mon, 27 Sep 2010 12:27:23 +0000
(12:27 +0000)
Originally committed as revision 25221 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/mpegtsenc.c
patch
|
blob
|
history
diff --git
a/libavformat/mpegtsenc.c
b/libavformat/mpegtsenc.c
index
ac09ab9
..
94a051d
100644
(file)
--- a/
libavformat/mpegtsenc.c
+++ b/
libavformat/mpegtsenc.c
@@
-276,8
+276,13
@@
static void mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
*q++ = language[1];
*q++ = language[2];
*q++ = 0x10; /* normal subtitles (0x20 = if hearing pb) */
+ if(st->codec->extradata_size == 4) {
+ memcpy(q, st->codec->extradata, 4);
+ q += 4;
+ } else {
put16(&q, 1); /* page id */
put16(&q, 1); /* ancillary page id */
+ }
}
break;
case AVMEDIA_TYPE_VIDEO: