Message ID | 20230604020214.1527-3-jamrial@gmail.com |
---|---|
State | Accepted |
Commit | 20584cdd89063dca4cddc9eac998aaf9291a9d80 |
Headers | show |
Series | [FFmpeg-devel,1/3,v2] avformat/av1dec: fix EOF check in Annex-B demuxer | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
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)
Signed-off-by: James Almer <jamrial@gmail.com> --- libavformat/av1dec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)