avcodec/ffv1dec: Fix end computation with ec=2
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 10e5af15bf)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
d5a26a396d
commit
1f5977e95c
1 changed files with 1 additions and 1 deletions
|
|
@ -362,7 +362,7 @@ static int decode_slice(AVCodecContext *c, void *arg)
|
|||
if (fs->ac != AC_GOLOMB_RICE && f->version > 2) {
|
||||
int v;
|
||||
get_rac(&fs->c, (uint8_t[]) { 129 });
|
||||
v = fs->c.bytestream_end - fs->c.bytestream - 2 - 5*f->ec;
|
||||
v = fs->c.bytestream_end - fs->c.bytestream - 2 - 5*!!f->ec;
|
||||
if (v) {
|
||||
av_log(f->avctx, AV_LOG_ERROR, "bytestream end mismatching by %d\n", v);
|
||||
fs->slice_damaged = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue