[FFmpeg-cvslog] bfi: set duration

Piotr Bandurski git at videolan.org
Sun Dec 16 16:57:17 CET 2012


ffmpeg | branch: master | Piotr Bandurski <ami_stuff at o2.pl> | Sun Dec 16 15:52:59 2012 +0100| [cb8163d0bdf687d5f20783c64e39a2f0e5b017c6] | committer: Michael Niedermayer

bfi: set duration

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cb8163d0bdf687d5f20783c64e39a2f0e5b017c6
---

 libavformat/bfi.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/bfi.c b/libavformat/bfi.c
index fd08e39..a28e09a 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;



More information about the ffmpeg-cvslog mailing list