[FFmpeg-cvslog] lavfi: fix forgotten chunk in eb0f774d.

Clément Bœsch git at videolan.org
Fri Apr 12 14:13:09 CEST 2013


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Fri Apr 12 14:07:59 2013 +0200| [6b5ec762830d2984da8d5cc4e3edd20899b9f45a] | committer: Clément Bœsch

lavfi: fix forgotten chunk in eb0f774d.

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

 libavfilter/graphparser.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index bd6863e..3718d09 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -586,8 +586,8 @@ end:
     avfilter_inout_free(&curr_inputs);
 
     if (ret < 0) {
-        for (; graph->nb_filters > 0; graph->nb_filters--)
-            avfilter_free(graph->filters[graph->nb_filters - 1]);
+        while (graph->nb_filters)
+            avfilter_free(graph->filters[0]);
         av_freep(&graph->filters);
     }
     return ret;



More information about the ffmpeg-cvslog mailing list