diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-09-13 09:26:55 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-09-13 09:27:14 +0200 |
commit | 09a278fdd13cfc16c151190051f362625595c06e (patch) | |
tree | 7a3222dfb88c14215f9a5ef0c9bae0d5ddff093c | |
parent | 9eaec5b8f010c805fd8e77216a1ec67eb20b1466 (diff) | |
download | ffmpeg-09a278fdd13cfc16c151190051f362625595c06e.tar.gz |
Fix muxing mjpeg in swf.
(cherry picked from commit 79234907128390d775ceb1206dd0fed111a17896)
-rw-r--r-- | libavformat/swfenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/swfenc.c b/libavformat/swfenc.c index b433f6b713..c1bb2b7023 100644 --- a/libavformat/swfenc.c +++ b/libavformat/swfenc.c @@ -496,8 +496,10 @@ static int swf_write_trailer(AVFormatContext *s) put_le32(pb, file_size); url_fseek(pb, swf->duration_pos, SEEK_SET); put_le16(pb, swf->video_frame_number); + if (swf->vframes_pos) { url_fseek(pb, swf->vframes_pos, SEEK_SET); put_le16(pb, swf->video_frame_number); + } url_fseek(pb, file_size, SEEK_SET); } return 0; |