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

Michael Niedermayer git at videolan.org
Wed Dec 25 21:02:42 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Dec 25 18:32:03 2013 +0100| [565f786d1da1fea80fcea231550d5d0f174c009a] | 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>

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

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

diff --git a/ffprobe.c b/ffprobe.c
index 2bb72ab..0374d37 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -1789,7 +1789,6 @@ static av_always_inline int process_frame(WriterContext *w,
     AVSubtitle sub;
     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