History

avfilter/avfilter: Remove unused feature to add pads in the middle

Andreas Rheinhardt committed 5 years ago

Commit 515e7fb1 parent 1e3574434 files · +56 −69Browse files

Showing the changes to libavfilter (34 of 34 files). Show all

Unified · Split

34 files
  1. libavfilter/af_acrossover.c +1 −1
  2. libavfilter/af_afir.c +4 −4
  3. libavfilter/af_aiir.c +2 −2
  4. libavfilter/af_amerge.c +1 −1
  5. libavfilter/af_amix.c +1 −1
  6. libavfilter/af_anequalizer.c +2 −2
  7. libavfilter/af_channelsplit.c +1 −2
  8. libavfilter/af_headphone.c +2 −2
  9. libavfilter/af_join.c +1 −1
  10. libavfilter/af_ladspa.c +1 −1
  11. libavfilter/af_lv2.c +1 −1
  12. libavfilter/avf_aphasemeter.c +2 −2
  13. libavfilter/avf_concat.c +2 −2
  14. libavfilter/avfilter.c +4 −11
  15. libavfilter/f_ebur128.c +2 −2
  16. libavfilter/f_interleave.c +1 −1
  17. libavfilter/f_segment.c +1 −1
  18. libavfilter/f_select.c +1 −1
  19. libavfilter/f_streamselect.c +2 −2
  20. libavfilter/internal.h +5 −10
  21. libavfilter/split.c +1 −1
  22. libavfilter/src_movie.c +1 −1
  23. libavfilter/vf_bm3d.c +2 −2
  24. libavfilter/vf_decimate.c +2 −2
  25. libavfilter/vf_extractplanes.c +1 −1
  26. libavfilter/vf_fieldmatch.c +2 −2
  27. libavfilter/vf_guided.c +2 −2
  28. libavfilter/vf_mergeplanes.c +1 −1
  29. libavfilter/vf_mix.c +1 −1
  30. libavfilter/vf_premultiply.c +2 −2
  31. libavfilter/vf_program_opencl.c +1 −1
  32. libavfilter/vf_signature.c +1 −1
  33. libavfilter/vf_stack.c +1 −1
  34. libavfilter/vf_xmedian.c +1 −1
libavfilter/af_acrossover.c+1−1
@@ -191,7 +191,7 @@ static av_cold int init(AVFilterContext *ctx) · 190 unmodified lines
191191 return AVERROR(ENOMEM);
192192 pad.name = name;
193193
194− if ((ret = ff_insert_outpad(ctx, i, &pad)) < 0) {
194+ if ((ret = ff_append_outpad(ctx, &pad)) < 0) {
195195 av_freep(&pad.name);
196196 return ret;
197197 }
libavfilter/af_afir.c+4−4
@@ -836,7 +836,7 @@ static av_cold int init(AVFilterContext *ctx) · 835 unmodified lines
836836 .type = AVMEDIA_TYPE_AUDIO,
837837 };
838838
839− ret = ff_insert_inpad(ctx, 0, &pad);
839+ ret = ff_append_inpad(ctx, &pad);
840840 if (ret < 0)
841841 return ret;
842842
@@ -849,7 +849,7 @@ static av_cold int init(AVFilterContext *ctx) · 6 unmodified lines
849849 if (!pad.name)
850850 return AVERROR(ENOMEM);
851851
852− ret = ff_insert_inpad(ctx, n + 1, &pad);
852+ ret = ff_append_inpad(ctx, &pad);
853853 if (ret < 0) {
854854 av_freep(&pad.name);
855855 return ret;
@@ -862,7 +862,7 @@ static av_cold int init(AVFilterContext *ctx) · 6 unmodified lines
862862 .config_props = config_output,
863863 };
864864
865− ret = ff_insert_outpad(ctx, 0, &pad);
865+ ret = ff_append_outpad(ctx, &pad);
866866 if (ret < 0)
867867 return ret;
868868
@@ -873,7 +873,7 @@ static av_cold int init(AVFilterContext *ctx) · 4 unmodified lines
873873 .config_props = config_video,
874874 };
875875
876− ret = ff_insert_outpad(ctx, 1, &vpad);
876+ ret = ff_append_outpad(ctx, &vpad);
877877 if (ret < 0)
878878 return ret;
879879 }
libavfilter/af_aiir.c+2−2
@@ -1473,7 +1473,7 @@ static av_cold int init(AVFilterContext *ctx) · 1472 unmodified lines
14731473 .config_props = config_output,
14741474 };
14751475
1476− ret = ff_insert_outpad(ctx, 0, &pad);
1476+ ret = ff_append_outpad(ctx, &pad);
14771477 if (ret < 0)
14781478 return ret;
14791479
@@ -1484,7 +1484,7 @@ static av_cold int init(AVFilterContext *ctx) · 4 unmodified lines
14841484 .config_props = config_video,
14851485 };
14861486
1487− ret = ff_insert_outpad(ctx, 1, &vpad);
1487+ ret = ff_append_outpad(ctx, &vpad);
14881488 if (ret < 0)
14891489 return ret;
14901490 }
libavfilter/af_amerge.c+1−1
@@ -328,7 +328,7 @@ static av_cold int init(AVFilterContext *ctx) · 327 unmodified lines
328328 };
329329 if (!name)
330330 return AVERROR(ENOMEM);
331− if ((ret = ff_insert_inpad(ctx, i, &pad)) < 0) {
331+ if ((ret = ff_append_inpad(ctx, &pad)) < 0) {
332332 av_freep(&pad.name);
333333 return ret;
334334 }
libavfilter/af_amix.c+1−1
@@ -553,7 +553,7 @@ static av_cold int init(AVFilterContext *ctx) · 552 unmodified lines
553553 if (!pad.name)
554554 return AVERROR(ENOMEM);
555555
556− if ((ret = ff_insert_inpad(ctx, i, &pad)) < 0) {
556+ if ((ret = ff_append_inpad(ctx, &pad)) < 0) {
557557 av_freep(&pad.name);
558558 return ret;
559559 }
libavfilter/af_anequalizer.c+2−2
@@ -196,7 +196,7 @@ static av_cold int init(AVFilterContext *ctx) · 195 unmodified lines
196196 .type = AVMEDIA_TYPE_AUDIO,
197197 };
198198
199− ret = ff_insert_outpad(ctx, 0, &pad);
199+ ret = ff_append_outpad(ctx, &pad);
200200 if (ret < 0)
201201 return ret;
202202
@@ -206,7 +206,7 @@ static av_cold int init(AVFilterContext *ctx) · 3 unmodified lines
206206 .type = AVMEDIA_TYPE_VIDEO,
207207 .config_props = config_video,
208208 };
209− ret = ff_insert_outpad(ctx, 1, &vpad);
209+ ret = ff_append_outpad(ctx, &vpad);
210210 if (ret < 0)
211211 return ret;
212212 }
libavfilter/af_channelsplit.c+1−2
@@ -97,9 +97,8 @@ static av_cold int init(AVFilterContext *ctx) · 96 unmodified lines
9797 s->map[i] = ret;
9898 }
9999
100− if ((ret = ff_insert_outpad(ctx, i, &pad)) < 0) {
100+ if ((ret = ff_append_outpad(ctx, &pad)) < 0)
101101 return ret;
102− }
103102 }
104103
105104 fail:
libavfilter/af_headphone.c+2−2
@@ -652,7 +652,7 @@ static av_cold int init(AVFilterContext *ctx) · 651 unmodified lines
652652 .type = AVMEDIA_TYPE_AUDIO,
653653 .config_props = config_input,
654654 };
655− if ((ret = ff_insert_inpad(ctx, 0, &pad)) < 0)
655+ if ((ret = ff_append_inpad(ctx, &pad)) < 0)
656656 return ret;
657657
658658 if (!s->map) {
@@ -670,7 +670,7 @@ static av_cold int init(AVFilterContext *ctx) · 11 unmodified lines
670670 };
671671 if (!name)
672672 return AVERROR(ENOMEM);
673− if ((ret = ff_insert_inpad(ctx, i + 1, &pad)) < 0) {
673+ if ((ret = ff_append_inpad(ctx, &pad)) < 0) {
674674 av_freep(&pad.name);
675675 return ret;
676676 }
libavfilter/af_join.c+1−1
@@ -194,7 +194,7 @@ static av_cold int join_init(AVFilterContext *ctx) · 193 unmodified lines
194194 if (!pad.name)
195195 return AVERROR(ENOMEM);
196196
197− if ((ret = ff_insert_inpad(ctx, i, &pad)) < 0) {
197+ if ((ret = ff_append_inpad(ctx, &pad)) < 0) {
198198 av_freep(&pad.name);
199199 return ret;
200200 }
libavfilter/af_ladspa.c+1−1
@@ -639,7 +639,7 @@ static av_cold int init(AVFilterContext *ctx) · 638 unmodified lines
639639
640640 pad.filter_frame = filter_frame;
641641 pad.config_props = config_input;
642− if (ff_insert_inpad(ctx, ctx->nb_inputs, &pad) < 0) {
642+ if (ff_append_inpad(ctx, &pad) < 0) {
643643 av_freep(&pad.name);
644644 return AVERROR(ENOMEM);
645645 }
libavfilter/af_lv2.c+1−1
@@ -464,7 +464,7 @@ static av_cold int init(AVFilterContext *ctx) · 463 unmodified lines
464464 return AVERROR(ENOMEM);
465465
466466 pad.filter_frame = filter_frame;
467− if (ff_insert_inpad(ctx, ctx->nb_inputs, &pad) < 0) {
467+ if (ff_append_inpad(ctx, &pad) < 0) {
468468 av_freep(&pad.name);
469469 return AVERROR(ENOMEM);
470470 }
libavfilter/avf_aphasemeter.c+2−2
@@ -355,7 +355,7 @@ static av_cold int init(AVFilterContext *ctx) · 354 unmodified lines
355355 .name = "out0",
356356 .type = AVMEDIA_TYPE_AUDIO,
357357 };
358− ret = ff_insert_outpad(ctx, 0, &pad);
358+ ret = ff_append_outpad(ctx, &pad);
359359 if (ret < 0)
360360 return ret;
361361
@@ -365,7 +365,7 @@ static av_cold int init(AVFilterContext *ctx) · 3 unmodified lines
365365 .type = AVMEDIA_TYPE_VIDEO,
366366 .config_props = config_video_output,
367367 };
368− ret = ff_insert_outpad(ctx, 1, &pad);
368+ ret = ff_append_outpad(ctx, &pad);
369369 if (ret < 0)
370370 return ret;
371371 }
libavfilter/avf_concat.c+2−2
@@ -319,7 +319,7 @@ static av_cold int init(AVFilterContext *ctx) · 318 unmodified lines
319319 else
320320 pad.get_buffer.audio = get_audio_buffer;
321321 pad.name = av_asprintf("in%d:%c%d", seg, "va"[type], str);
322− if ((ret = ff_insert_inpad(ctx, ctx->nb_inputs, &pad)) < 0) {
322+ if ((ret = ff_append_inpad(ctx, &pad)) < 0) {
323323 av_freep(&pad.name);
324324 return ret;
325325 }
@@ -334,7 +334,7 @@ static av_cold int init(AVFilterContext *ctx) · 8 unmodified lines
334334 .config_props = config_output,
335335 };
336336 pad.name = av_asprintf("out:%c%d", "va"[type], str);
337− if ((ret = ff_insert_outpad(ctx, ctx->nb_outputs, &pad)) < 0) {
337+ if ((ret = ff_append_outpad(ctx, &pad)) < 0) {
338338 av_freep(&pad.name);
339339 return ret;
340340 }
libavfilter/avfilter.c+4−11
@@ -101,18 +101,16 @@ void ff_command_queue_pop(AVFilterContext *filter) · 100 unmodified lines
101101 av_free(c);
102102 }
103103
104−int ff_insert_pad(unsigned idx, unsigned *count, size_t padidx_off,
104+int ff_append_pad(unsigned *count,
105105 AVFilterPad **pads, AVFilterLink ***links,
106106 AVFilterPad *newpad)
107107 {
108108 AVFilterLink **newlinks;
109109 AVFilterPad *newpads;
110− unsigned i;
111−
112− idx = FFMIN(idx, *count);
110+ unsigned idx = *count;
113111
114− newpads = av_realloc_array(*pads, *count + 1, sizeof(AVFilterPad));
115− newlinks = av_realloc_array(*links, *count + 1, sizeof(AVFilterLink*));
112+ newpads = av_realloc_array(*pads, idx + 1, sizeof(*newpads));
113+ newlinks = av_realloc_array(*links, idx + 1, sizeof(*newlinks));
116114 if (newpads)
117115 *pads = newpads;
118116 if (newlinks)
@@ -120,15 +118,10 @@ int ff_insert_pad(unsigned idx, unsigned *count, size_t padidx_off, · 1 unmodified line
120118 if (!newpads || !newlinks)
121119 return AVERROR(ENOMEM);
122120
123− memmove(*pads + idx + 1, *pads + idx, sizeof(AVFilterPad) * (*count - idx));
124− memmove(*links + idx + 1, *links + idx, sizeof(AVFilterLink*) * (*count - idx));
125121 memcpy(*pads + idx, newpad, sizeof(AVFilterPad));
126122 (*links)[idx] = NULL;
127123
128124 (*count)++;
129− for (i = idx + 1; i < *count; i++)
130− if ((*links)[i])
131− (*(unsigned *)((uint8_t *) (*links)[i] + padidx_off))++;
132125
133126 return 0;
134127 }
libavfilter/f_ebur128.c+2−2
@@ -552,7 +552,7 @@ static av_cold int init(AVFilterContext *ctx) · 551 unmodified lines
552552 .type = AVMEDIA_TYPE_VIDEO,
553553 .config_props = config_video_output,
554554 };
555− ret = ff_insert_outpad(ctx, 0, &pad);
555+ ret = ff_append_outpad(ctx, &pad);
556556 if (ret < 0)
557557 return ret;
558558 }
@@ -561,7 +561,7 @@ static av_cold int init(AVFilterContext *ctx) · 2 unmodified lines
561561 .type = AVMEDIA_TYPE_AUDIO,
562562 .config_props = config_audio_output,
563563 };
564− ret = ff_insert_outpad(ctx, ebur128->do_video, &pad);
564+ ret = ff_append_outpad(ctx, &pad);
565565 if (ret < 0)
566566 return ret;
567567
libavfilter/f_interleave.c+1−1
@@ -173,7 +173,7 @@ static av_cold int init(AVFilterContext *ctx) · 172 unmodified lines
173173 default:
174174 av_assert0(0);
175175 }
176− if ((ret = ff_insert_inpad(ctx, i, &inpad)) < 0) {
176+ if ((ret = ff_append_inpad(ctx, &inpad)) < 0) {
177177 av_freep(&inpad.name);
178178 return ret;
179179 }
libavfilter/f_segment.c+1−1
@@ -137,7 +137,7 @@ static av_cold int init(AVFilterContext *ctx, enum AVMediaType type) · 136 unmodified lines
137137 if (!pad.name)
138138 return AVERROR(ENOMEM);
139139
140− if ((ret = ff_insert_outpad(ctx, i, &pad)) < 0) {
140+ if ((ret = ff_append_outpad(ctx, &pad)) < 0) {
141141 av_freep(&pad.name);
142142 return ret;
143143 }
libavfilter/f_select.c+1−1
@@ -192,7 +192,7 @@ static av_cold int init(AVFilterContext *ctx) · 191 unmodified lines
192192 return AVERROR(ENOMEM);
193193 pad.type = ctx->filter->inputs[0].type;
194194 pad.request_frame = request_frame;
195− if ((ret = ff_insert_outpad(ctx, i, &pad)) < 0) {
195+ if ((ret = ff_append_outpad(ctx, &pad)) < 0) {
196196 av_freep(&pad.name);
197197 return ret;
198198 }
libavfilter/f_streamselect.c+2−2
@@ -167,10 +167,10 @@ static int parse_definition(AVFilterContext *ctx, int nb_pads, int is_input, int · 166 unmodified lines
167167 av_log(ctx, AV_LOG_DEBUG, "Add %s pad %s\n", padtype, pad.name);
168168
169169 if (is_input) {
170− ret = ff_insert_inpad(ctx, i, &pad);
170+ ret = ff_append_inpad(ctx, &pad);
171171 } else {
172172 pad.config_props = config_output;
173− ret = ff_insert_outpad(ctx, i, &pad);
173+ ret = ff_append_outpad(ctx, &pad);
174174 }
175175
176176 if (ret < 0) {
libavfilter/internal.h+5−10
@@ -226,34 +226,29 @@ void ff_tlog_link(void *ctx, AVFilterLink *link, int end); · 225 unmodified lines
226226 /**
227227 * Insert a new pad.
228228 *
229− * @param idx Insertion point. Pad is inserted at the end if this point
230− * is beyond the end of the list of pads.
231229 * @param count Pointer to the number of pads in the list
232− * @param padidx_off Offset within an AVFilterLink structure to the element
233− * to increment when inserting a new pad causes link
234− * numbering to change
235230 * @param pads Pointer to the pointer to the beginning of the list of pads
236231 * @param links Pointer to the pointer to the beginning of the list of links
237232 * @param newpad The new pad to add. A copy is made when adding.
238233 * @return >= 0 in case of success, a negative AVERROR code on error
239234 */
240−int ff_insert_pad(unsigned idx, unsigned *count, size_t padidx_off,
235+int ff_append_pad(unsigned *count,
241236 AVFilterPad **pads, AVFilterLink ***links,
242237 AVFilterPad *newpad);
243238
244239 /** Insert a new input pad for the filter. */
245−static inline int ff_insert_inpad(AVFilterContext *f, unsigned index,
240+static inline int ff_append_inpad(AVFilterContext *f,
246241 AVFilterPad *p)
247242 {
248− return ff_insert_pad(index, &f->nb_inputs, offsetof(AVFilterLink, dstpad),
243+ return ff_append_pad(&f->nb_inputs,
249244 &f->input_pads, &f->inputs, p);
250245 }
251246
252247 /** Insert a new output pad for the filter. */
253−static inline int ff_insert_outpad(AVFilterContext *f, unsigned index,
248+static inline int ff_append_outpad(AVFilterContext *f,
254249 AVFilterPad *p)
255250 {
256− return ff_insert_pad(index, &f->nb_outputs, offsetof(AVFilterLink, srcpad),
251+ return ff_append_pad(&f->nb_outputs,
257252 &f->output_pads, &f->outputs, p);
258253 }
259254
libavfilter/split.c+1−1
@@ -56,7 +56,7 @@ static av_cold int split_init(AVFilterContext *ctx) · 55 unmodified lines
5656 if (!pad.name)
5757 return AVERROR(ENOMEM);
5858
59− if ((ret = ff_insert_outpad(ctx, i, &pad)) < 0) {
59+ if ((ret = ff_append_outpad(ctx, &pad)) < 0) {
6060 av_freep(&pad.name);
6161 return ret;
6262 }
libavfilter/src_movie.c+1−1
@@ -306,7 +306,7 @@ static av_cold int movie_common_init(AVFilterContext *ctx) · 305 unmodified lines
306306 return AVERROR(ENOMEM);
307307 pad.config_props = movie_config_output_props;
308308 pad.request_frame = movie_request_frame;
309− if ((ret = ff_insert_outpad(ctx, i, &pad)) < 0) {
309+ if ((ret = ff_append_outpad(ctx, &pad)) < 0) {
310310 av_freep(&pad.name);
311311 return ret;
312312 }
libavfilter/vf_bm3d.c+2−2
@@ -941,7 +941,7 @@ static av_cold int init(AVFilterContext *ctx) · 940 unmodified lines
941941 pad.name = "source";
942942 pad.config_props = config_input;
943943
944− if ((ret = ff_insert_inpad(ctx, 0, &pad)) < 0)
944+ if ((ret = ff_append_inpad(ctx, &pad)) < 0)
945945 return ret;
946946
947947 if (s->ref) {
@@ -949,7 +949,7 @@ static av_cold int init(AVFilterContext *ctx) · 1 unmodified line
949949 pad.name = "reference";
950950 pad.config_props = NULL;
951951
952− if ((ret = ff_insert_inpad(ctx, 1, &pad)) < 0)
952+ if ((ret = ff_append_inpad(ctx, &pad)) < 0)
953953 return ret;
954954 }
955955
libavfilter/vf_decimate.c+2−2
@@ -310,13 +310,13 @@ static av_cold int decimate_init(AVFilterContext *ctx) · 309 unmodified lines
310310 };
311311 int ret;
312312
313− if ((ret = ff_insert_inpad(ctx, INPUT_MAIN, &pad)) < 0)
313+ if ((ret = ff_append_inpad(ctx, &pad)) < 0)
314314 return ret;
315315
316316 if (dm->ppsrc) {
317317 pad.name = "clean_src";
318318 pad.config_props = NULL;
319− if ((ret = ff_insert_inpad(ctx, INPUT_CLEANSRC, &pad)) < 0)
319+ if ((ret = ff_append_inpad(ctx, &pad)) < 0)
320320 return ret;
321321 }
322322
libavfilter/vf_extractplanes.c+1−1
@@ -352,7 +352,7 @@ static av_cold int init(AVFilterContext *ctx) · 351 unmodified lines
352352 pad.type = AVMEDIA_TYPE_VIDEO;
353353 pad.config_props = config_output;
354354
355− if ((ret = ff_insert_outpad(ctx, ctx->nb_outputs, &pad)) < 0) {
355+ if ((ret = ff_append_outpad(ctx, &pad)) < 0) {
356356 av_freep(&pad.name);
357357 return ret;
358358 }
libavfilter/vf_fieldmatch.c+2−2
@@ -970,13 +970,13 @@ static av_cold int fieldmatch_init(AVFilterContext *ctx) · 969 unmodified lines
970970 };
971971 int ret;
972972
973− if ((ret = ff_insert_inpad(ctx, INPUT_MAIN, &pad)) < 0)
973+ if ((ret = ff_append_inpad(ctx, &pad)) < 0)
974974 return ret;
975975
976976 if (fm->ppsrc) {
977977 pad.name = "clean_src";
978978 pad.config_props = NULL;
979− if ((ret = ff_insert_inpad(ctx, INPUT_CLEANSRC, &pad)) < 0)
979+ if ((ret = ff_append_inpad(ctx, &pad)) < 0)
980980 return ret;
981981 }
982982
libavfilter/vf_guided.c+2−2
@@ -442,7 +442,7 @@ static av_cold int init(AVFilterContext *ctx) · 441 unmodified lines
442442 pad.name = "source";
443443 pad.config_props = config_input;
444444
445− if ((ret = ff_insert_inpad(ctx, 0, &pad)) < 0)
445+ if ((ret = ff_append_inpad(ctx, &pad)) < 0)
446446 return ret;
447447
448448 if (s->guidance == ON) {
@@ -450,7 +450,7 @@ static av_cold int init(AVFilterContext *ctx) · 1 unmodified line
450450 pad.name = "guidance";
451451 pad.config_props = NULL;
452452
453− if ((ret = ff_insert_inpad(ctx, 1, &pad)) < 0)
453+ if ((ret = ff_append_inpad(ctx, &pad)) < 0)
454454 return ret;
455455 }
456456
libavfilter/vf_mergeplanes.c+1−1
@@ -96,7 +96,7 @@ static av_cold int init(AVFilterContext *ctx) · 95 unmodified lines
9696 if (!pad.name)
9797 return AVERROR(ENOMEM);
9898
99− if ((ret = ff_insert_inpad(ctx, i, &pad)) < 0){
99+ if ((ret = ff_append_inpad(ctx, &pad)) < 0){
100100 av_freep(&pad.name);
101101 return ret;
102102 }
libavfilter/vf_mix.c+1−1
@@ -125,7 +125,7 @@ static av_cold int init(AVFilterContext *ctx) · 124 unmodified lines
125125 if (!pad.name)
126126 return AVERROR(ENOMEM);
127127
128− if ((ret = ff_insert_inpad(ctx, i, &pad)) < 0) {
128+ if ((ret = ff_append_inpad(ctx, &pad)) < 0) {
129129 av_freep(&pad.name);
130130 return ret;
131131 }
libavfilter/vf_premultiply.c+2−2
@@ -790,7 +790,7 @@ static av_cold int init(AVFilterContext *ctx) · 789 unmodified lines
790790 pad.name = "main";
791791 pad.config_props = config_input;
792792
793− if ((ret = ff_insert_inpad(ctx, 0, &pad)) < 0)
793+ if ((ret = ff_append_inpad(ctx, &pad)) < 0)
794794 return ret;
795795
796796 if (!s->inplace) {
@@ -798,7 +798,7 @@ static av_cold int init(AVFilterContext *ctx) · 1 unmodified line
798798 pad.name = "alpha";
799799 pad.config_props = NULL;
800800
801− if ((ret = ff_insert_inpad(ctx, 1, &pad)) < 0)
801+ if ((ret = ff_append_inpad(ctx, &pad)) < 0)
802802 return ret;
803803 }
804804
libavfilter/vf_program_opencl.c+1−1
@@ -287,7 +287,7 @@ static av_cold int program_opencl_init(AVFilterContext *avctx) · 286 unmodified lines
287287
288288 input.config_props = &ff_opencl_filter_config_input;
289289
290− err = ff_insert_inpad(avctx, i, &input);
290+ err = ff_append_inpad(avctx, &input);
291291 if (err < 0) {
292292 av_freep(&input.name);
293293 return err;
libavfilter/vf_signature.c+1−1
@@ -664,7 +664,7 @@ static av_cold int init(AVFilterContext *ctx) · 663 unmodified lines
664664
665665 if (!pad.name)
666666 return AVERROR(ENOMEM);
667− if ((ret = ff_insert_inpad(ctx, i, &pad)) < 0) {
667+ if ((ret = ff_append_inpad(ctx, &pad)) < 0) {
668668 av_freep(&pad.name);
669669 return ret;
670670 }
libavfilter/vf_stack.c+1−1
@@ -123,7 +123,7 @@ static av_cold int init(AVFilterContext *ctx) · 122 unmodified lines
123123 if (!pad.name)
124124 return AVERROR(ENOMEM);
125125
126− if ((ret = ff_insert_inpad(ctx, i, &pad)) < 0) {
126+ if ((ret = ff_append_inpad(ctx, &pad)) < 0) {
127127 av_freep(&pad.name);
128128 return ret;
129129 }
libavfilter/vf_xmedian.c+1−1
@@ -118,7 +118,7 @@ static av_cold int init(AVFilterContext *ctx) · 117 unmodified lines
118118 if (!pad.name)
119119 return AVERROR(ENOMEM);
120120
121− if ((ret = ff_insert_inpad(ctx, i, &pad)) < 0) {
121+ if ((ret = ff_append_inpad(ctx, &pad)) < 0) {
122122 av_freep(&pad.name);
123123 return ret;
124124 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t