diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-02-01 20:02:17 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-02-04 02:55:11 +0000 |
commit | 4359288c565705d1734f63d277f8918ee5af5e54 (patch) | |
tree | f558512cc95ab6e2157bce2b56d6be911f0a0273 /ffplay.c | |
parent | e8e5dde779fca80d86e00baea26d1baca333f4c0 (diff) | |
download | ffmpeg-4359288c565705d1734f63d277f8918ee5af5e54.tar.gz |
Make avfilter_graph_free() free the graph.
Make avfilter_graph_free() free not only the internal structures, but
also the allocated graph, and set the graph pointer to NULL for
increased safety.
Simplify usage.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1899,8 +1899,7 @@ static int video_thread(void *arg) } the_end: #if CONFIG_AVFILTER - avfilter_graph_free(graph); - av_freep(&graph); + avfilter_graph_free(&graph); #endif av_free(frame); return 0; |