forked from FFmpeg/FFmpeg
avcodec/vp9: Remove redundant reporting of progress on error
Redundant since 5e03eea673
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
8fc7f0fdec
commit
193c40259e
1 changed files with 2 additions and 6 deletions
|
@ -1293,17 +1293,13 @@ static int decode_tiles(AVCodecContext *avctx,
|
|||
data += 4;
|
||||
size -= 4;
|
||||
}
|
||||
if (tile_size > size) {
|
||||
ff_thread_report_progress(&s->s.frames[CUR_FRAME].tf, INT_MAX, 0);
|
||||
if (tile_size > size)
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
ret = ff_vpx_init_range_decoder(&td->c_b[tile_col], data, tile_size);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
if (vpx_rac_get_prob_branchy(&td->c_b[tile_col], 128)) { // marker bit
|
||||
ff_thread_report_progress(&s->s.frames[CUR_FRAME].tf, INT_MAX, 0);
|
||||
if (vpx_rac_get_prob_branchy(&td->c_b[tile_col], 128)) // marker bit
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
data += tile_size;
|
||||
size -= tile_size;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue