summaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-04 20:34:19 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-04 20:34:19 +0000
commite15aeea6565f0e6386db7738814fcdde46c2dec3 (patch)
tree91d372dcc385aa2107ba29c392e4723c59b46af9 /ffplay.c
parenta6fdd5748fa015eaaf085695fc59240b6d0b9a7d (diff)
downloadffmpeg-streaming-e15aeea6565f0e6386db7738814fcdde46c2dec3.zip
ffmpeg-streaming-e15aeea6565f0e6386db7738814fcdde46c2dec3.tar.gz
Implement avfilter_graph_alloc().
Originally committed as revision 25673 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffplay.c b/ffplay.c
index 0563e96..3ee107f 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1795,7 +1795,7 @@ static int video_thread(void *arg)
char sws_flags_str[128];
FFSinkContext ffsink_ctx = { .pix_fmt = PIX_FMT_YUV420P };
AVFilterContext *filt_src = NULL, *filt_out = NULL;
- AVFilterGraph *graph = av_mallocz(sizeof(AVFilterGraph));
+ AVFilterGraph *graph = avfilter_graph_alloc();
snprintf(sws_flags_str, sizeof(sws_flags_str), "flags=%d", sws_flags);
graph->scale_sws_opts = av_strdup(sws_flags_str);
OpenPOWER on IntegriCloud