Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / ffmpeg / libavformat / filmstripenc.c
index 85d49be..7c9bc6d 100644 (file)
@@ -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