avcodec/h263dec: Return the correct error code in explode mode

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2016-12-15 20:31:23 +01:00
parent c869e00f88
commit eb7aa6bde4
1 changed files with 1 additions and 1 deletions

View File

@ -713,7 +713,7 @@ frame_end:
} }
if (slice_ret < 0 && (avctx->err_recognition & AV_EF_EXPLODE)) if (slice_ret < 0 && (avctx->err_recognition & AV_EF_EXPLODE))
return ret; return slice_ret;
else else
return get_consumed_bytes(s, buf_size); return get_consumed_bytes(s, buf_size);
} }