[FFmpeg-cvslog] wmapro: unref skipped frames
Janne Grunau
git at videolan.org
Wed Mar 13 02:07:47 CET 2013
ffmpeg | branch: master | Janne Grunau <janne-libav at jannau.net> | Sun Mar 10 22:13:03 2013 +0100| [08149b2b39089f4ed7700afb635a0252b1dc76ed] | committer: Janne Grunau
wmapro: unref skipped frames
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=08149b2b39089f4ed7700afb635a0252b1dc76ed
---
libavcodec/wmaprodec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c
index 56bb83c..7d5ac03 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;
}
More information about the ffmpeg-cvslog
mailing list