aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2007-01-14 13:57:26 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2007-01-14 13:57:26 +0000
commit3439dc95070e78b261f80d34a2892f44368e86c5 (patch)
tree01be12bacd3f446d2701f500f8cc05f7d5e25733 /libavformat
parentb1e5c29485dcb32d8ba0a56396ce89e15f6733fc (diff)
downloadffmpeg-3439dc95070e78b261f80d34a2892f44368e86c5.tar.gz
seek back at the end of file after updating header
Originally committed as revision 7473 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/swf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/swf.c b/libavformat/swf.c
index 7ec3f7f767..ab9ec5acb5 100644
--- a/libavformat/swf.c
+++ b/libavformat/swf.c
@@ -691,6 +691,7 @@ static int swf_write_trailer(AVFormatContext *s)
put_le32(pb, file_size);
url_fseek(pb, swf->duration_pos, SEEK_SET);
put_le16(pb, video_enc->frame_number);
+ url_fseek(pb, file_size, SEEK_SET);
}
av_free(swf->audio_fifo);