diff options
author | Marton Balint <cus@passwd.hu> | 2019-01-27 19:48:12 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2019-02-04 21:43:30 +0100 |
commit | 4b46d1ee463f6bb2d2be967d418d275a44fe2a9c (patch) | |
tree | e65711d0707767aa6e6e3e2528a34c406ef785ce | |
parent | 56c58b99d0670c8baff64b8b35bc06c9a9f35ef8 (diff) | |
download | ffmpeg-4b46d1ee463f6bb2d2be967d418d275a44fe2a9c.tar.gz |
avformat/async: fix assertion condition when draining buffer
Fixes some random assertion failures with
ffprobe -show_packets async:samples/ffmpeg-bugs/trac/ticket6132/Samsung_HDR_-_Chasing_the_Light.ts > /dev/null
Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r-- | libavformat/async.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/async.c b/libavformat/async.c index 54dbd2312a..4e295b5e10 100644 --- a/libavformat/async.c +++ b/libavformat/async.c @@ -142,7 +142,7 @@ static int ring_size_of_read_back(RingBuffer *ring) static int ring_drain(RingBuffer *ring, int offset) { av_assert2(offset >= -ring_size_of_read_back(ring)); - av_assert2(offset <= -ring_size(ring)); + av_assert2(offset <= ring_size(ring)); ring->read_pos += offset; return 0; } |