[FFmpeg-cvslog] filmstripenc: fix rounding that caused fate failure

Michael Niedermayer git at videolan.org
Mon Nov 5 00:29:26 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Nov  5 00:21:04 2012 +0100| [e82afa3e2d633299fb62487dbd29596341ee628c] | committer: Michael Niedermayer

filmstripenc: fix rounding that caused fate failure

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

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

 libavformat/filmstripenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/filmstripenc.c b/libavformat/filmstripenc.c
index 99fbf0b..85d49be 100644
--- a/libavformat/filmstripenc.c
+++ b/libavformat/filmstripenc.c
@@ -64,7 +64,7 @@ static int write_trailer(AVFormatContext *s)
     avio_wb16(pb, st->codec->width);
     avio_wb16(pb, st->codec->height);
     avio_wb16(pb, 0);  // leading
-    avio_wb16(pb, 1/av_q2d(st->codec->time_base));
+    avio_wb16(pb, st->codec->time_base.den / st->codec->time_base.num);
     for (i = 0; i < 16; i++)
         avio_w8(pb, 0x00);  // reserved
 



More information about the ffmpeg-cvslog mailing list