diff options
author | James Almer <jamrial@gmail.com> | 2023-06-03 11:23:31 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-06-06 09:26:19 -0300 |
commit | 20584cdd89063dca4cddc9eac998aaf9291a9d80 (patch) | |
tree | b0456e655723b257f9c5fbfe0dab792c205db561 /libavformat/av1dec.c | |
parent | a5e45988ac6970ef43240b85b5d775f3e25d3156 (diff) | |
download | ffmpeg-20584cdd89063dca4cddc9eac998aaf9291a9d80.tar.gz |
avformat/av1: reduce the scope of a variable
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/av1dec.c')
-rw-r--r-- | libavformat/av1dec.c | 3 |
1 files changed, 1 insertions, 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) |