diff --git a/libavformat/swfenc.c b/libavformat/swfenc.c
index 904ce157dbfef9442469cd155d902bdde3ea248f..0fc244e1263d98547c94aa02c575f8b87ad96d05 100644
--- a/libavformat/swfenc.c
+++ b/libavformat/swfenc.c
@@ -410,7 +410,7 @@ static int swf_write_video(AVFormatContext *s,
         put_swf_end_tag(s);
     }
 
-    swf->swf_frame_number ++;
+    swf->swf_frame_number++;
 
     /* streaming sound always should be placed just before showframe tags */
     if (swf->audio_enc && av_fifo_size(&swf->audio_fifo)) {