]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/webpenc.c
avcodec/codec, allcodecs: Constify the AVCodec API
[ffmpeg] / libavformat / webpenc.c
index ed8325c02d7423791a2eded40c9fdc5c9f2fceec..ca4ffc4e2dd0abaed32ede79e4b32e31aa572352 100644 (file)
@@ -172,7 +172,7 @@ static int webp_write_trailer(AVFormatContext *s)
     WebpContext *w = s->priv_data;
 
     if (w->using_webp_anim_encoder) {
-        if ((w->frame_count > 1) && w->loop) {  // Write loop count.
+        if (w->loop) {  // Write loop count.
             avio_seek(s->pb, 42, SEEK_SET);
             avio_wl16(s->pb, w->loop);
         }