Commit 827faa18 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/dnxhd_parser: Optimize insufficient buf size case

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 1707dbdf
......@@ -88,6 +88,10 @@ static int dnxhd_find_frame_end(DNXHDParserContext *dctx,
return remaining;
} else {
dctx->remaining -= buf_size;
// Update variables for correctness, they are currently not used beyond here
state = -1;
dctx->cur_byte += buf_size - i;
break;
}
}
}
......
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