diff options
author | Marton Balint <cus@passwd.hu> | 2019-11-10 22:12:28 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2019-12-03 11:00:11 +0100 |
commit | 565dc3e451c73a011e37a5faf022f67b8b5c1f9c (patch) | |
tree | 396a6094edda46bd84a6dd7789e56e8bc10cb48f /libavformat/mpegtsenc.c | |
parent | f5b83d5419a3610f2dedd3f7b82f4a0e84d5a58b (diff) | |
download | ffmpeg-565dc3e451c73a011e37a5faf022f67b8b5c1f9c.tar.gz |
avformat/mpegtsenc: set priority flag for AC3 codecs if writing BluRay
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/mpegtsenc.c')
-rw-r--r-- | libavformat/mpegtsenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |