|
|
@ -320,15 +320,15 @@ static av_cold void uninit(AVFilterContext *ctx) |
|
|
|
int i; |
|
|
|
int i; |
|
|
|
|
|
|
|
|
|
|
|
if (select->expr) |
|
|
|
if (select->expr) |
|
|
|
av_expr_free(select->expr); |
|
|
|
av_expr_free(select->expr); |
|
|
|
select->expr = NULL; |
|
|
|
select->expr = NULL; |
|
|
|
|
|
|
|
|
|
|
|
if (select->pending_frames) { |
|
|
|
if (select->pending_frames) { |
|
|
|
for (i = 0; i < av_fifo_size(select->pending_frames)/sizeof(picref); i++) { |
|
|
|
for (i = 0; i < av_fifo_size(select->pending_frames)/sizeof(picref); i++) { |
|
|
|
av_fifo_generic_read(select->pending_frames, &picref, sizeof(picref), NULL); |
|
|
|
av_fifo_generic_read(select->pending_frames, &picref, sizeof(picref), NULL); |
|
|
|
avfilter_unref_buffer(picref); |
|
|
|
avfilter_unref_buffer(picref); |
|
|
|
} |
|
|
|
} |
|
|
|
av_fifo_free(select->pending_frames); |
|
|
|
av_fifo_free(select->pending_frames); |
|
|
|
} |
|
|
|
} |
|
|
|
select->pending_frames = NULL; |
|
|
|
select->pending_frames = NULL; |
|
|
|
} |
|
|
|
} |
|
|
|