mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
avformat/av1: reduce the scope of a variable
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
a5e45988ac
commit
20584cdd89
@ -126,11 +126,10 @@ static const AVClass av1_demuxer_class = {
|
|||||||
|
|
||||||
static int leb(AVIOContext *pb, uint32_t *len, int eof) {
|
static int leb(AVIOContext *pb, uint32_t *len, int eof) {
|
||||||
int more, i = 0;
|
int more, i = 0;
|
||||||
uint8_t byte;
|
|
||||||
*len = 0;
|
*len = 0;
|
||||||
do {
|
do {
|
||||||
unsigned bits;
|
unsigned bits;
|
||||||
byte = avio_r8(pb);
|
int byte = avio_r8(pb);
|
||||||
if (pb->error)
|
if (pb->error)
|
||||||
return pb->error;
|
return pb->error;
|
||||||
if (pb->eof_reached)
|
if (pb->eof_reached)
|
||||||
|
Loading…
Reference in New Issue
Block a user