1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

wmapro: unref skipped frames

This commit is contained in:
Janne Grunau 2013-03-10 22:13:03 +01:00
parent e3232f3431
commit 08149b2b39

View File

@ -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;
}