bfi: Avoid divisions by zero
authorMartin Storsjö <martin@martin.st>
Sat, 28 Sep 2013 20:42:40 +0000 (23:42 +0300)
committerMartin Storsjö <martin@martin.st>
Sun, 29 Sep 2013 16:58:56 +0000 (19:58 +0300)
commit9fc7184d1a9af8d97b3fc5c2ef9d0a647d6617ea
tree1490e3e532bcdb0d829ec5aae123e1386c9592fd
parenta9221e39600a31ee13e736e9e47743cde23f0280
bfi: Avoid divisions by zero

If a zero-length video packet is to be returned, just return
AVERROR(EAGAIN) and switch back to the audio stream.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/bfi.c