avcodec/rasc: Fix potential use of uninitialized value

Fixes Coverity issue #1439566.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-10-03 14:53:31 +02:00
parent 4c7fec5006
commit c9b44a79d1

View File

@ -721,6 +721,7 @@ static int decode_frame(AVCodecContext *avctx,
break; break;
default: default:
bytestream2_skip(gb, size); bytestream2_skip(gb, size);
ret = 0;
} }
if (ret < 0) if (ret < 0)