Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-03-11 03:19:50 +0400
committerNicolas George <nicolas.george@normalesup.org>2012-03-17 20:26:27 +0400
commit69174fad736e4ced0010a25e0fde5389ba9c77f0 (patch)
treedfa5a50295c8af7a580f9fecaf99f21a27428a7e /libavfilter/vf_thumbnail.c
parent463705bd1c644bbdded7bcf9f619bcb4203d562f (diff)
vf_thumbnail: forward request_frame at least once.
The current version relied on poll_frame to request the very first frame, that would not work if the surrounding code does not call poll_frame.
Diffstat (limited to 'libavfilter/vf_thumbnail.c')
-rw-r--r--libavfilter/vf_thumbnail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_thumbnail.c b/libavfilter/vf_thumbnail.c
index fe4a086493..0b7ba06482 100644
--- a/libavfilter/vf_thumbnail.c
+++ b/libavfilter/vf_thumbnail.c
@@ -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;
}