aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-05-17 17:15:47 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-05-17 17:19:35 +0200
commit22a3a5ee0c7d1b9a8c9497d347261266416ac379 (patch)
tree64335b0f672f862d67f281acb69beed686d86577
parentdc2e051c4f1c03f952b86e6741b5cf22e78b86f8 (diff)
downloadffmpeg-22a3a5ee0c7d1b9a8c9497d347261266416ac379.tar.gz
ffmpeg: use av_buffersrc_add_frame() for audio too
fixes a memleak Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--ffmpeg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index b197fa15c3..c71d860caa 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2514,8 +2514,7 @@ static int transcode_audio(InputStream *ist, AVPacket *pkt, int *got_output)
#ifdef SRCA
av_buffersrc_write_frame(ist->filters[i]->filter, decoded_frame);
#else
- AVFilterBufferRef *fb= avfilter_get_audio_buffer_ref_from_frame(decoded_frame, AV_PERM_WRITE);
- av_buffersrc_add_ref(ist->filters[i]->filter, fb, 0*AV_BUFFERSRC_FLAG_NO_CHECK_FORMAT);
+ av_buffersrc_add_frame(ist->filters[i]->filter, decoded_frame, 0);
#endif
}