use internal video frame number
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Tue, 27 May 2008 22:37:54 +0000 (22:37 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Tue, 27 May 2008 22:37:54 +0000 (22:37 +0000)
Originally committed as revision 13479 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/swfenc.c

index 0fc244e..dcba793 100644 (file)
@@ -494,7 +494,7 @@ static int swf_write_trailer(AVFormatContext *s)
         url_fseek(pb, 4, SEEK_SET);
         put_le32(pb, file_size);
         url_fseek(pb, swf->duration_pos, SEEK_SET);
-        put_le16(pb, video_enc->frame_number);
+        put_le16(pb, swf->video_frame_number);
         url_fseek(pb, file_size, SEEK_SET);
     }
     return 0;