]> git.sesse.net Git - ffmpeg/commit
avformat/av1dec: fix return value on some code paths
authorJames Almer <jamrial@gmail.com>
Fri, 14 Aug 2020 03:09:43 +0000 (00:09 -0300)
committerJames Almer <jamrial@gmail.com>
Fri, 14 Aug 2020 03:14:37 +0000 (00:14 -0300)
commita762fd2c1b7fe4f0140ed297321b307f9527f929
tree66fe639f18b04f5d0a5c414302907d5611d6f998
parent3105e970503e77f11a9d8139d38b73abe25907a9
avformat/av1dec: fix return value on some code paths

If avio_read() returns a value of bytes read that's lower than the
expected, return an error instead. And when there are zero bytes in
the prefetch buffer, return 0 in order for the frame merge bsf to
drain all potentially buffered packets.

Missed by mistake when amending and committing 9a7bdb6d71.

Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/av1dec.c