mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avcodec/parser: assert that there is a past buffer if theres a reference into the past
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
3c716682a8
commit
c0607d88ee
@ -285,6 +285,8 @@ int ff_combine_frame(ParseContext *pc, int next,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
av_assert0(next >= 0 || pc->buffer);
|
||||||
|
|
||||||
*buf_size =
|
*buf_size =
|
||||||
pc->overread_index = pc->index + next;
|
pc->overread_index = pc->index + next;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user