[FFmpeg-cvslog] ffprobe: Dont clear AVFrame between uses.

Michael Niedermayer git at videolan.org
Tue Jan 7 21:35:31 CET 2014


ffmpeg | branch: release/2.1 | Michael Niedermayer <michaelni at gmx.at> | Wed Dec 25 18:32:03 2013 +0100| [88058b4650f59876189648c2ca9e7c5ac3d68905] | committer: Michael Niedermayer

ffprobe: Dont clear AVFrame between uses.

The old API required this clearing in the past, the new API does not
require it.

Fixes memleak
Regression introduced by 37a749012aaacc801fe860428417a6d7b81c103f

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 565f786d1da1fea80fcea231550d5d0f174c009a)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=88058b4650f59876189648c2ca9e7c5ac3d68905
---

 ffprobe.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/ffprobe.c b/ffprobe.c
index bb81b53..d07a58b 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -1580,7 +1580,6 @@ static av_always_inline int process_frame(WriterContext *w,
     AVCodecContext *dec_ctx = fmt_ctx->streams[pkt->stream_index]->codec;
     int ret = 0, got_frame = 0;
 
-    avcodec_get_frame_defaults(frame);
     if (dec_ctx->codec) {
         switch (dec_ctx->codec_type) {
         case AVMEDIA_TYPE_VIDEO:



More information about the ffmpeg-cvslog mailing list