From 08149b2b39089f4ed7700afb635a0252b1dc76ed Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Sun, 10 Mar 2013 22:13:03 +0100 Subject: wmapro: unref skipped frames --- libavcodec/wmaprodec.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/wmaprodec.c') diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c index 56bb83ce27..7d5ac037bf 100644 --- a/libavcodec/wmaprodec.c +++ b/libavcodec/wmaprodec.c @@ -1388,6 +1388,7 @@ static int decode_frame(WMAProDecodeCtx *s, AVFrame *frame, int *got_frame_ptr) if (s->skip_frame) { s->skip_frame = 0; *got_frame_ptr = 0; + av_frame_unref(frame); } else { *got_frame_ptr = 1; } -- cgit v1.2.3