[FFmpeg-cvslog] lavfi/avf_showcqt: remove looping on request_frame().

Nicolas George git at videolan.org
Wed Oct 7 19:08:34 CEST 2015


ffmpeg | branch: master | Nicolas George <george at nsup.org> | Fri Oct  2 16:00:53 2015 +0200| [114f3f526e5ad1557c514fe1213dd87f4ebe6f6a] | committer: Nicolas George

lavfi/avf_showcqt: remove looping on request_frame().

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=114f3f526e5ad1557c514fe1213dd87f4ebe6f6a
---

 libavfilter/avf_showcqt.c |    9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/libavfilter/avf_showcqt.c b/libavfilter/avf_showcqt.c
index 7089758..e939d8f 100644
--- a/libavfilter/avf_showcqt.c
+++ b/libavfilter/avf_showcqt.c
@@ -75,7 +75,6 @@ typedef struct {
     int spectogram_count;
     int spectogram_index;
     int fft_bits;
-    int req_fullfilled;
     int remaining_fill;
     char *tlength;
     char *volume;
@@ -423,7 +422,6 @@ static int config_output(AVFilterLink *outlink)
     outlink->w = video_width;
     outlink->h = video_height;
 
-    s->req_fullfilled = 0;
     s->spectogram_index = 0;
     s->frame_count = 0;
     s->spectogram_count = 0;
@@ -649,7 +647,6 @@ static int plot_cqt(AVFilterLink *inlink)
 
         s->outpicref->pts = s->frame_count;
         ret = ff_filter_frame(outlink, av_frame_clone(s->outpicref));
-        s->req_fullfilled = 1;
         s->frame_count++;
     }
     s->spectogram_count = (s->spectogram_count + 1) % s->count;
@@ -723,11 +720,7 @@ static int request_frame(AVFilterLink *outlink)
     AVFilterLink *inlink = outlink->src->inputs[0];
     int ret;
 
-    s->req_fullfilled = 0;
-    do {
-        ret = ff_request_frame(inlink);
-    } while (!s->req_fullfilled && ret >= 0);
-
+    ret = ff_request_frame(inlink);
     if (ret == AVERROR_EOF && s->outpicref)
         filter_frame(inlink, NULL);
     return ret;



More information about the ffmpeg-cvslog mailing list