mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-03 13:32:10 +00:00
avcodec/vqavideo: Remove dead code
Fixes Coverity issue #1493344. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
d6c16c5217
commit
5593f5cf24
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user