[FFmpeg-cvslog] avformat/mpegtsenc: set priority flag for AC3 codecs if writing BluRay

Marton Balint git at videolan.org
Tue Dec 3 12:10:04 EET 2019


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sun Nov 10 22:12:28 2019 +0100| [565dc3e451c73a011e37a5faf022f67b8b5c1f9c] | committer: Marton Balint

avformat/mpegtsenc: set priority flag for AC3 codecs if writing BluRay

Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=565dc3e451c73a011e37a5faf022f67b8b5c1f9c
---

 libavformat/mpegtsenc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index b578539240..92c7820236 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -1237,6 +1237,8 @@ static void mpegts_write_pes(AVFormatContext *s, AVStream *st,
         q    = buf;
         *q++ = 0x47;
         val  = ts_st->pid >> 8;
+        if (ts->m2ts_mode && st->codecpar->codec_id == AV_CODEC_ID_AC3)
+            val |= 0x20;
         if (is_start)
             val |= 0x40;
         *q++      = val;



More information about the ffmpeg-cvslog mailing list