diff options
author | Thierry Foucu <tfoucu@gmail.com> | 2012-04-08 09:44:14 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-08 09:44:14 +0200 |
commit | cb939468202ce9352a9a8809007f24608bbbb61a (patch) | |
tree | e0a1318cef3ba8a452661690a463d08e195bd6cb /libavformat/mpegtsenc.c | |
parent | 352a67e6f8fa85a6d87912dac017cd1efb4e0399 (diff) | |
download | ffmpeg-cb939468202ce9352a9a8809007f24608bbbb61a.tar.gz |
mpegtsenc: Add support to mux s302 stream
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mpegtsenc.c')
-rw-r--r-- | libavformat/mpegtsenc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index de4259c3a0..36e958f49c 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -306,6 +306,14 @@ static void mpegts_write_pmt(AVFormatContext *s, MpegTSService *service) *q++=1; // 1 byte, all flags sets to 0 *q++=0; // omit all fields... } + if(st->codec->codec_id==CODEC_ID_S302M){ + *q++ = 0x05; /* MPEG-2 registration descriptor*/ + *q++ = 4; + *q++ = 'B'; + *q++ = 'S'; + *q++ = 'S'; + *q++ = 'D'; + } if (lang) { char *p; |