[FFmpeg-cvslog] avfilter/avfilter: remove accidental loop index variable reset

James Almer git at videolan.org
Mon Feb 3 16:12:31 EET 2025


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Feb  1 21:51:06 2025 -0300| [db7ff135744d171bfc6adc7d4af065f9d853233f] | committer: James Almer

avfilter/avfilter: remove accidental loop index variable reset

Fixes ticket #11442.

Signed-off-by: James Almer <jamrial at gmail.com>

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

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

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 89b39445e6..e732556ffa 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -382,9 +382,9 @@ int ff_filter_config_links(AVFilterContext *filter)
             /* Copy side data before link->srcpad->config_props() is called, so the filter
              * may remove it for the next filter in the chain */
             if (inlink && inlink->nb_side_data && !link->nb_side_data) {
-                for (i = 0; i < inlink->nb_side_data; i++) {
+                for (int j = 0; j < inlink->nb_side_data; j++) {
                     ret = av_frame_side_data_clone(&link->side_data, &link->nb_side_data,
-                                                   inlink->side_data[i], 0);
+                                                   inlink->side_data[j], 0);
                     if (ret < 0) {
                         av_frame_side_data_free(&link->side_data, &link->nb_side_data);
                         return ret;



More information about the ffmpeg-cvslog mailing list