[FFmpeg-cvslog] avcodec/vp8: Forward return of ff_vpx_init_range_decoder()

Michael Niedermayer git at videolan.org
Wed May 22 23:16:09 EEST 2024


ffmpeg | branch: release/7.0 | Michael Niedermayer <michael at niedermayer.cc> | Sat May 18 03:06:46 2024 +0200| [7f05002e05e8c2809455f6e36557f9498c015e8b] | committer: Michael Niedermayer

avcodec/vp8: Forward return of ff_vpx_init_range_decoder()

Fixes: CID1507483 Unchecked return value

Sponsored-by: Sovereign Tech Fund
Reviewed-by: "Ronald S. Bultje" <rsbultje at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 63feed1519c5e38d6ce146f265c48592236e3abc)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavcodec/vp8.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c
index dd6c1b361b..3ebf1c2df9 100644
--- a/libavcodec/vp8.c
+++ b/libavcodec/vp8.c
@@ -354,9 +354,8 @@ static int setup_partitions(VP8Context *s, const uint8_t *buf, int buf_size)
     }
 
     s->coeff_partition_size[i] = buf_size;
-    ff_vpx_init_range_decoder(&s->coeff_partition[i], buf, buf_size);
 
-    return 0;
+    return ff_vpx_init_range_decoder(&s->coeff_partition[i], buf, buf_size);
 }
 
 static void vp7_get_quants(VP8Context *s)



More information about the ffmpeg-cvslog mailing list