[FFmpeg-cvslog] avcodec/sga: Make it clear that the return is intentionally not checked

Michael Niedermayer git at videolan.org
Sat Jun 1 19:02:22 EEST 2024


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu May 23 02:33:37 2024 +0200| [00d029d5c0b7029720265d579389a348220decfb] | committer: Michael Niedermayer

avcodec/sga: Make it clear that the return is intentionally not checked

Related: CID1473496 Unchecked return value

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavcodec/sga.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/sga.c b/libavcodec/sga.c
index 0f42cf912b..618df000ad 100644
--- a/libavcodec/sga.c
+++ b/libavcodec/sga.c
@@ -73,7 +73,7 @@ static int decode_palette(GetByteContext *gb, uint32_t *pal)
         return AVERROR_INVALIDDATA;
 
     memset(pal, 0, 16 * sizeof(*pal));
-    init_get_bits8(&gbit, gb->buffer, 18);
+    (void)init_get_bits8(&gbit, gb->buffer, 18);
 
     for (int RGBIndex = 0; RGBIndex < 3; RGBIndex++) {
         for (int index = 0; index < 16; index++) {



More information about the ffmpeg-cvslog mailing list