[FFmpeg-cvslog] Fix muxing mjpeg in swf.

Carl Eugen Hoyos git at videolan.org
Wed Sep 12 13:10:08 CEST 2012


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Wed Sep 12 13:08:27 2012 +0200| [7680d99b4302e476076cc1b8f2567f47c2aaef4d] | committer: Carl Eugen Hoyos

Fix muxing mjpeg in swf.

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

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

diff --git a/libavformat/swfenc.c b/libavformat/swfenc.c
index 8621769..1e9d96c 100644
--- a/libavformat/swfenc.c
+++ b/libavformat/swfenc.c
@@ -495,8 +495,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