aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2012-09-13 09:26:55 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2012-09-13 09:26:55 +0200
commit79234907128390d775ceb1206dd0fed111a17896 (patch)
treea4412ebb520303286d768228d11cd353585b0f89
parent371e221d632d3e2450223c152c8c7e26ae4005a8 (diff)
downloadffmpeg-79234907128390d775ceb1206dd0fed111a17896.tar.gz
Fix muxing mjpeg in swf.
-rw-r--r--libavformat/swfenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/swfenc.c b/libavformat/swfenc.c
index 1a1a9ab808..769f4e3e0d 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;