10l, fix compilation
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 21 May 2008 22:53:52 +0000 (22:53 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 21 May 2008 22:53:52 +0000 (22:53 +0000)
Originally committed as revision 13229 to svn://svn.ffmpeg.org/ffmpeg/trunk

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;
 }