[FFmpeg-devel] [PATCH 3/3] avformat/av1: reduce the scope of a variable

James Almer jamrial at gmail.com
Sun Jun 4 05:02:14 EEST 2023


Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavformat/av1dec.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavformat/av1dec.c b/libavformat/av1dec.c
index 501b0cc93f..d0d53f41f7 100644
--- a/libavformat/av1dec.c
+++ b/libavformat/av1dec.c
@@ -126,11 +126,10 @@ static const AVClass av1_demuxer_class = {
 
 static int leb(AVIOContext *pb, uint32_t *len, int eof) {
     int more, i = 0;
-    uint8_t byte;
     *len = 0;
     do {
         unsigned bits;
-        byte = avio_r8(pb);
+        int byte = avio_r8(pb);
         if (pb->error)
             return pb->error;
         if (pb->eof_reached)
-- 
2.40.1



More information about the ffmpeg-devel mailing list