[FFmpeg-cvslog] avformat/av1: reduce the scope of a variable

James Almer git at videolan.org
Tue Jun 6 15:28:20 EEST 2023


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Jun  3 11:23:31 2023 -0300| [20584cdd89063dca4cddc9eac998aaf9291a9d80] | committer: James Almer

avformat/av1: reduce the scope of a variable

Signed-off-by: James Almer <jamrial at gmail.com>

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

 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)



More information about the ffmpeg-cvslog mailing list