Commit c0607d88 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/parser: assert that there is a past buffer if theres a reference into the past

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 3c716682
......@@ -285,6 +285,8 @@ int ff_combine_frame(ParseContext *pc, int next,
return -1;
}
av_assert0(next >= 0 || pc->buffer);
*buf_size =
pc->overread_index = pc->index + next;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment