aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-25 18:32:03 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-01-07 21:28:41 +0100
commit88058b4650f59876189648c2ca9e7c5ac3d68905 (patch)
tree2cad0a90d62d01db2691d45dbc76e24ed4f09d07
parentca22a2dec5613f8deef8661abcaaac8ace31312a (diff)
downloadffmpeg-88058b4650f59876189648c2ca9e7c5ac3d68905.tar.gz
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@gmx.at> (cherry picked from commit 565f786d1da1fea80fcea231550d5d0f174c009a) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--ffprobe.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ffprobe.c b/ffprobe.c
index bb81b53577..d07a58b1c2 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: