diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-11-26 20:17:09 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-11-28 07:00:33 +0100 |
commit | 5593f5cf242a99495b6047e5c226bfe4b934342e (patch) | |
tree | 4a51a6157eb6144415bfd0375c6e4b2c9683a47e /libavcodec | |
parent | d6c16c5217a8d2cbb754d44bf1206479fe5f906d (diff) | |
download | ffmpeg-5593f5cf242a99495b6047e5c226bfe4b934342e.tar.gz |
avcodec/vqavideo: Remove dead code
Fixes Coverity issue #1493344.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/vqavideo.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavcodec/vqavideo.c b/libavcodec/vqavideo.c index 5466e25cdf..61f0a2c950 100644 --- a/libavcodec/vqavideo.c +++ b/libavcodec/vqavideo.c @@ -692,11 +692,6 @@ static int vqa_decode_frame_hicolor(VqaContext *s, AVFrame *frame) bytestream2_get_buffer(&s->gb, s->codebook, chunk_size); } - if (vprz_chunk == -1 && vptr_chunk == -1) { - av_log(s->avctx, AV_LOG_ERROR, "frame has no block data\n"); - return AVERROR_INVALIDDATA; - } - /* decode the frame */ if (vptr_chunk != -1) { @@ -716,7 +711,7 @@ static int vqa_decode_frame_hicolor(VqaContext *s, AVFrame *frame) if ((res = decode_format80(s, chunk_size, s->decode_buffer, s->decode_buffer_size, 0)) < 0) return res; } else { - av_log(s->avctx, AV_LOG_ERROR, "expected either VPTR or VPRZ chunk\n"); + av_log(s->avctx, AV_LOG_ERROR, "frame has no block data\n"); return AVERROR_INVALIDDATA; } |