diff options
author | Jun Zhao <barryjzhao@tencent.com> | 2019-06-15 11:19:18 +0300 |
---|---|---|
committer | Jun Zhao <barryjzhao@tencent.com> | 2019-11-04 05:22:11 +0300 |
commit | 8f7a043609554fd5e6917afeaed5d95bca420859 (patch) | |
tree | 93a1d3219165afd7aae333993618bad6ea323e9c /libavformat | |
parent | a8ec0685ac1cfbeb0e87f47b86d4f0b5cf75d745 (diff) |
lavf/mpegtsenc: fix logic check error
fix the logic check error
fix #6751
Reviewed-by: Andriy Gelman <andriy.gelman@gmail.com>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mpegtsenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 0678657d09..9f8f1715c9 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -1642,7 +1642,7 @@ static int mpegts_write_packet_internal(AVFormatContext *s, AVPacket *pkt) } while (p < buf_end && (state & 0x7e) != 2*35 && (state & 0x7e) >= 2*32); - if ((state & 0x7e) < 2*16 && (state & 0x7e) >= 2*24) + if ((state & 0x7e) < 2*16 || (state & 0x7e) >= 2*24) extradd = 0; if ((state & 0x7e) != 2*35) { // AUD NAL data = av_malloc(pkt->size + 7 + extradd); |