[FFmpeg-cvslog] Fix muxing mjpeg in swf.

Carl Eugen Hoyos git at videolan.org
Thu Sep 13 09:40:09 CEST 2012


ffmpeg | branch: release/0.11 | Carl Eugen Hoyos <cehoyos at ag.or.at> | Wed Sep 12 13:08:27 2012 +0200| [72791e41d40b30b76a86b56aa6bc1c300ecc6677] | committer: Carl Eugen Hoyos

Fix muxing mjpeg in swf.
(cherry picked from commit 7680d99b4302e476076cc1b8f2567f47c2aaef4d)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=72791e41d40b30b76a86b56aa6bc1c300ecc6677
---

 libavformat/swfenc.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/swfenc.c b/libavformat/swfenc.c
index 6a3cdad..8177ffa 100644
--- a/libavformat/swfenc.c
+++ b/libavformat/swfenc.c
@@ -494,8 +494,10 @@ static int swf_write_trailer(AVFormatContext *s)
         avio_wl32(pb, file_size);
         avio_seek(pb, swf->duration_pos, SEEK_SET);
         avio_wl16(pb, swf->video_frame_number);
+        if (swf->vframes_pos) {
         avio_seek(pb, swf->vframes_pos, SEEK_SET);
         avio_wl16(pb, swf->video_frame_number);
+        }
         avio_seek(pb, file_size, SEEK_SET);
     }
     return 0;



More information about the ffmpeg-cvslog mailing list