Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -347,7 +347,7 @@ static int decode_slice(AVCodecContext *c, void *arg) · 346 unmodified lines | ||
| 347 | 347 | if (f->ac != AC_GOLOMB_RICE && f->version > 2) { |
| 348 | 348 | int v; |
| 349 | 349 | get_rac(&sc->c, (uint8_t[]) { 129 }); |
| 350 | − v = sc->c.bytestream_end - sc->c.bytestream - 2 - 5*f->ec; | |
| 350 | + v = sc->c.bytestream_end - sc->c.bytestream - 2 - 5*!!f->ec; | |
| 351 | 351 | if (v) { |
| 352 | 352 | av_log(f->avctx, AV_LOG_ERROR, "bytestream end mismatching by %d\n", v); |
| 353 | 353 | slice_set_damaged(f, sc); |