Browse Source

bfi: fix division by 0

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 12 years ago
parent
commit
99a8552dae
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/bfi.c

+ 1
- 1
libavformat/bfi.c View File

@@ -150,7 +150,7 @@ static int bfi_read_packet(AVFormatContext * s, AVPacket * pkt)
return ret;

pkt->pts = bfi->video_frame;
bfi->video_frame += ret / bfi->video_size;
bfi->video_frame += bfi->video_size ? ret / bfi->video_size : 1;

/* One less frame to read. A cursory decrement. */
bfi->nframes--;


Loading…
Cancel
Save