diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-09-12 13:08:27 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-09-12 13:08:27 +0200 |
commit | 7680d99b4302e476076cc1b8f2567f47c2aaef4d (patch) | |
tree | ae4f4b9c9676cfc7a735d1ebe591eb13d9af3ef4 /libavformat | |
parent | ac0f1ae64bac87e8d97be5793ebb5638ac0162c3 (diff) | |
download | ffmpeg-7680d99b4302e476076cc1b8f2567f47c2aaef4d.tar.gz |
Fix muxing mjpeg in swf.
Diffstat (limited to 'libavformat')
-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 862176953c..1e9d96c108 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; |