]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_thumbnail.c
libavfilter: src_buffer: add time_base for audio
[ffmpeg] / libavfilter / vf_thumbnail.c
index fe4a086493394440304a8f0867940c725dd6fede..0b7ba06482f6a11786b2240b9e7b64dd83189a46 100644 (file)
@@ -176,11 +176,11 @@ static int request_frame(AVFilterLink *link)
 
     /* loop until a frame thumbnail is available (when a frame is queued,
      * thumb->n is reset to zero) */
-    while (thumb->n) {
+    do {
         int ret = avfilter_request_frame(link->src->inputs[0]);
         if (ret < 0)
             return ret;
-    }
+    } while (thumb->n);
     return 0;
 }