summaryrefslogtreecommitdiff
path: root/libavformat/filmstripenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/filmstripenc.c')
-rw-r--r--libavformat/filmstripenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/filmstripenc.c b/libavformat/filmstripenc.c
index 85d49beec7..7c9bc6dcc0 100644
--- a/libavformat/filmstripenc.c
+++ b/libavformat/filmstripenc.c
@@ -64,7 +64,8 @@ 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, st->codec->time_base.den / st->codec->time_base.num);
+ // TODO: should be avg_frame_rate
+ avio_wb16(pb, st->time_base.den / st->time_base.num);
for (i = 0; i < 16; i++)
avio_w8(pb, 0x00); // reserved