aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-03 14:53:31 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-01-11 15:15:53 +0100
commit0229916f156f0cce4aeab5e4da079ad9c204be0a (patch)
treef72e6d05d56592d7f3ae87b6848a666f32b8b1ef /libavcodec
parentb229dce2e4c2db9f52808978a114e711f38aa75c (diff)
downloadffmpeg-0229916f156f0cce4aeab5e4da079ad9c204be0a.tar.gz
avcodec/rasc: Fix potential use of uninitialized value
Fixes Coverity issue #1439566. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> (cherry picked from commit c9b44a79d1bc87251f36926b288f79adefec397f)
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/rasc.c1
1 files changed, 1 insertions, 0 deletions
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)