aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/wmaprodec.c
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2013-03-10 22:13:03 +0100
committerJanne Grunau <janne-libav@jannau.net>2013-03-10 22:34:43 +0100
commit08149b2b39089f4ed7700afb635a0252b1dc76ed (patch)
treec8ed5caa90bad1e1666b42c6677113b6f1f472a8 /libavcodec/wmaprodec.c
parente3232f34312f8187094c875445683277ed0c209d (diff)
downloadffmpeg-08149b2b39089f4ed7700afb635a0252b1dc76ed.tar.gz
wmapro: unref skipped frames
Diffstat (limited to 'libavcodec/wmaprodec.c')
-rw-r--r--libavcodec/wmaprodec.c1
1 files changed, 1 insertions, 0 deletions
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;
}