[FFmpeg-cvslog] avcodec/rasc: Fix potential use of uninitialized value

Andreas Rheinhardt git at videolan.org
Wed Jan 12 02:50:40 EET 2022


ffmpeg | branch: release/4.4 | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Oct  3 14:53:31 2021 +0200| [0229916f156f0cce4aeab5e4da079ad9c204be0a] | committer: Andreas Rheinhardt

avcodec/rasc: Fix potential use of uninitialized value

Fixes Coverity issue #1439566.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
(cherry picked from commit c9b44a79d1bc87251f36926b288f79adefec397f)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0229916f156f0cce4aeab5e4da079ad9c204be0a
---

 libavcodec/rasc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/rasc.c b/libavcodec/rasc.c
index 207d50c452..5ed1333886 100644
--- a/libavcodec/rasc.c
+++ b/libavcodec/rasc.c
@@ -722,6 +722,7 @@ static int decode_frame(AVCodecContext *avctx,
             break;
         default:
             bytestream2_skip(gb, size);
+            ret = 0;
         }
 
         if (ret < 0)



More information about the ffmpeg-cvslog mailing list