Commit bfe945ac authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/bmp_parser: Fix frame_start_found in cross frame cases

Fixes part of ticket 5598
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent b5bc436e
......@@ -91,7 +91,10 @@ flush:
if (ff_combine_frame(&bpc->pc, next, &buf, &buf_size) < 0)
return buf_size;
bpc->pc.frame_start_found = 0;
if (next != END_NOT_FOUND && next < 0)
bpc->pc.frame_start_found = FFMAX(bpc->pc.frame_start_found - i - 1, 0);
else
bpc->pc.frame_start_found = 0;
*poutbuf = buf;
*poutbuf_size = buf_size;
......
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