diff options
author | Piotr Bandurski <ami_stuff@o2.pl> | 2012-12-16 15:52:59 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-16 16:53:01 +0100 |
commit | cb8163d0bdf687d5f20783c64e39a2f0e5b017c6 (patch) | |
tree | c9df9f5f750f005bea5a8bfdb31dd3ace8d80fb1 /libavformat/bfi.c | |
parent | de89dff8da7b8ab1b8e3eb369ba1fa7a7e8dcb72 (diff) | |
download | ffmpeg-cb8163d0bdf687d5f20783c64e39a2f0e5b017c6.tar.gz |
bfi: set duration
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/bfi.c')
-rw-r--r-- | libavformat/bfi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/bfi.c b/libavformat/bfi.c index fd08e39f79..a28e09a4f1 100644 --- a/libavformat/bfi.c +++ b/libavformat/bfi.c @@ -92,6 +92,8 @@ static int bfi_read_header(AVFormatContext * s) vstream->codec->codec_type = AVMEDIA_TYPE_VIDEO; vstream->codec->codec_id = AV_CODEC_ID_BFI; vstream->codec->pix_fmt = AV_PIX_FMT_PAL8; + vstream->nb_frames = + vstream->duration = bfi->nframes; /* Set up the audio codec now... */ astream->codec->codec_type = AVMEDIA_TYPE_AUDIO; |