[FFmpeg-cvslog] Fix muxing mjpeg in swf.
Carl Eugen Hoyos
git at videolan.org
Thu Sep 13 09:40:11 CEST 2012
ffmpeg | branch: release/0.9 | Carl Eugen Hoyos <cehoyos at ag.or.at> | Wed Sep 12 13:08:27 2012 +0200| [f7d7b01e81ff17c196b809a60368eb346cf6091b] | 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=f7d7b01e81ff17c196b809a60368eb346cf6091b
---
libavformat/swfenc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/swfenc.c b/libavformat/swfenc.c
index af812d0..0ad7b33 100644
--- a/libavformat/swfenc.c
+++ b/libavformat/swfenc.c
@@ -498,8 +498,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