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

Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Marton Balint 2019-11-10 22:12:28 +01:00
parent f5b83d5419
commit 565dc3e451
1 changed files with 2 additions and 0 deletions

View File

@ -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;