Commit e82afa3e authored by Michael Niedermayer's avatar Michael Niedermayer

filmstripenc: fix rounding that caused fate failure

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a147c1b2
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment