bfi: set duration
authorPiotr Bandurski <ami_stuff@o2.pl>
Sun, 16 Dec 2012 14:52:59 +0000 (15:52 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 16 Dec 2012 15:53:01 +0000 (16:53 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/bfi.c

index fd08e39..a28e09a 100644 (file)
@@ -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;