[FFmpeg-cvslog] ffmpeg: use av_buffersrc_add_frame() for audio too
Michael Niedermayer
git at videolan.org
Thu May 17 17:21:08 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu May 17 17:15:47 2012 +0200| [22a3a5ee0c7d1b9a8c9497d347261266416ac379] | committer: Michael Niedermayer
ffmpeg: use av_buffersrc_add_frame() for audio too
fixes a memleak
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=22a3a5ee0c7d1b9a8c9497d347261266416ac379
---
ffmpeg.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index b197fa1..c71d860 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
}
More information about the ffmpeg-cvslog
mailing list