diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-11-05 00:21:04 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-05 00:28:21 +0100 |
commit | e82afa3e2d633299fb62487dbd29596341ee628c (patch) | |
tree | ebbfcf0516c9bae21bfde5104bdfcd8841987c81 | |
parent | a147c1b2b125c26cd2c5105a7f274a597de37731 (diff) | |
download | ffmpeg-e82afa3e2d633299fb62487dbd29596341ee628c.tar.gz |
filmstripenc: fix rounding that caused fate failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/filmstripenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/filmstripenc.c b/libavformat/filmstripenc.c index 99fbf0b570..85d49beec7 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 |