diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-06-11 15:30:46 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-06-12 22:46:02 +0200 |
commit | c535494268069282cc1147c4d61d4a88ce39e078 (patch) | |
tree | b7aa99064bf1b577eae22eac07ba4fa361815cc5 /ffmpeg.c | |
parent | 6119b23a3662d1e106cdf69ef3171b2e7e1d495c (diff) | |
download | ffmpeg-c535494268069282cc1147c4d61d4a88ce39e078.tar.gz |
avfiltergraph: make the AVFilterInOut alloc/free API public
This is required for letting applications to create and destroy
AVFilterInOut structs in a convenient way.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -405,8 +405,8 @@ static int configure_video_filters(AVInputStream *ist, AVOutputStream *ost) ost->graph->scale_sws_opts = av_strdup(args); if (ost->avfilter) { - AVFilterInOut *outputs = av_malloc(sizeof(AVFilterInOut)); - AVFilterInOut *inputs = av_malloc(sizeof(AVFilterInOut)); + AVFilterInOut *outputs = avfilter_inout_alloc(); + AVFilterInOut *inputs = avfilter_inout_alloc(); outputs->name = av_strdup("in"); outputs->filter_ctx = last_filter; |