Signed-off-by: Marton Balint <[email protected]>
---
libavformat/mpegtsenc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index fbc7305dc1..46cfc68904 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;
--
2.16.4
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".