summaryrefslogtreecommitdiff
path: root/avplay.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-09-21 09:10:23 +0200
committerAnton Khirnov <anton@khirnov.net>2012-09-24 12:31:25 +0200
commit11d1ca4b2c406bee2d22b04268a43b0873096c92 (patch)
tree4ceb6b2a73ffa7525588029614eb1b437a8c04d3 /avplay.c
parent9eb296572ec801c32d86b349ba1de27704953237 (diff)
downloadffmpeg-11d1ca4b2c406bee2d22b04268a43b0873096c92.tar.gz
Use avcodec_free_frame() to free AVFrames.
Diffstat (limited to 'avplay.c')
-rw-r--r--avplay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/avplay.c b/avplay.c
index a0b0e5bc56..d47cf9439a 100644
--- a/avplay.c
+++ b/avplay.c
@@ -1704,7 +1704,7 @@ static int video_thread(void *arg)
avfilter_graph_free(&graph);
#endif
av_free_packet(&pkt);
- av_free(frame);
+ avcodec_free_frame(&frame);
return 0;
}
@@ -2191,7 +2191,7 @@ static void stream_component_close(VideoState *is, int stream_index)
avresample_free(&is->avr);
av_freep(&is->audio_buf1);
is->audio_buf = NULL;
- av_freep(&is->frame);
+ avcodec_free_frame(&is->frame);
if (is->rdft) {
av_rdft_end(is->rdft);