1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00

lavfi: use av_fifo_freep

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
This commit is contained in:
Lukasz Marek 2014-05-06 21:31:08 +02:00
parent 351f6118c7
commit 70b63419ee
3 changed files with 3 additions and 5 deletions

View File

@ -76,8 +76,7 @@ static av_cold void uninit(AVFilterContext *ctx)
av_fifo_generic_read(sink->fifo, &frame, sizeof(frame), NULL); av_fifo_generic_read(sink->fifo, &frame, sizeof(frame), NULL);
av_frame_free(&frame); av_frame_free(&frame);
} }
av_fifo_free(sink->fifo); av_fifo_freep(&sink->fifo);
sink->fifo = NULL;
} }
} }

View File

@ -426,8 +426,7 @@ static av_cold void uninit(AVFilterContext *ctx)
av_fifo_generic_read(s->fifo, &frame, sizeof(frame), NULL); av_fifo_generic_read(s->fifo, &frame, sizeof(frame), NULL);
av_frame_free(&frame); av_frame_free(&frame);
} }
av_fifo_free(s->fifo); av_fifo_freep(&s->fifo);
s->fifo = NULL;
} }
static int query_formats(AVFilterContext *ctx) static int query_formats(AVFilterContext *ctx)

View File

@ -103,7 +103,7 @@ static av_cold void uninit(AVFilterContext *ctx)
if (s->fifo) { if (s->fifo) {
s->drop += av_fifo_size(s->fifo) / sizeof(AVFrame*); s->drop += av_fifo_size(s->fifo) / sizeof(AVFrame*);
flush_fifo(s->fifo); flush_fifo(s->fifo);
av_fifo_free(s->fifo); av_fifo_freep(&s->fifo);
} }
av_log(ctx, AV_LOG_VERBOSE, "%d frames in, %d frames out; %d frames dropped, " av_log(ctx, AV_LOG_VERBOSE, "%d frames in, %d frames out; %d frames dropped, "