aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/wmaprodec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-03-13 02:02:00 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-03-13 02:02:06 +0100
commite5949cc12a7af107e4d4265d711fe77278cce5c9 (patch)
treee07e576ab7c30608d68674172d359c6468d10c88 /libavcodec/wmaprodec.c
parentff3e8564c440b03dc9cf72f3a7536fe4880ad72e (diff)
parent684e3d2e1ce96625eeef63f2564aab66f6715d05 (diff)
downloadffmpeg-e5949cc12a7af107e4d4265d711fe77278cce5c9.tar.gz
Merge commit '684e3d2e1ce96625eeef63f2564aab66f6715d05'
* commit '684e3d2e1ce96625eeef63f2564aab66f6715d05': ra144: check buffer size before requesting a buffer wmapro: unref skipped frames Merged-by: Michael Niedermayer <michaelni@gmx.at>
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 9a8158f292..d5af3eeb3f 100644
--- a/libavcodec/wmaprodec.c
+++ b/libavcodec/wmaprodec.c
@@ -1399,6 +1399,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;
}