diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-10 14:53:27 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-10 14:58:37 +0200 |
commit | 193c40259e9ed9233256f1a3080b70c3e5bc609a (patch) | |
tree | 67b46da9fddfe01e1c0c42d0bc61ec4f56fe0a57 | |
parent | 8fc7f0fdec1aa8d3a9f8ab43e9d7f2eefdcc168a (diff) |
avcodec/vp9: Remove redundant reporting of progress on error
Redundant since 5e03eea673a9da2253ed15152e46b1422b35d145.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/vp9.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index db06acd748..621627ddc5 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -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; } |