[FFmpeg-cvslog] Fix muxing mjpeg in swf.

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


ffmpeg | branch: release/0.6 | Carl Eugen Hoyos <cehoyos at ag.or.at> | Thu Sep 13 09:26:55 2012 +0200| [79234907128390d775ceb1206dd0fed111a17896] | committer: Carl Eugen Hoyos

Fix muxing mjpeg in swf.

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

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

diff --git a/libavformat/swfenc.c b/libavformat/swfenc.c
index 1a1a9ab..769f4e3 100644
--- a/libavformat/swfenc.c
+++ b/libavformat/swfenc.c
@@ -498,8 +498,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;



More information about the ffmpeg-cvslog mailing list