10l, fix compilation
[ffmpeg.git] / libavformat / ffm.c
index 6c79a9d..deb30a6 100644 (file)
@@ -260,7 +260,7 @@ static int ffm_write_packet(AVFormatContext *s, AVPacket *pkt)
     ffm_write_data(s, header, FRAME_HEADER_SIZE, pts, 1);
     ffm_write_data(s, pkt->data, size, pts, 0);
 
-    fst->pts += duration;
+    fst->pts += pkt->duration;
     return 0;
 }