mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
wmapro: unref skipped frames
This commit is contained in:
parent
e3232f3431
commit
08149b2b39
@ -1388,6 +1388,7 @@ static int decode_frame(WMAProDecodeCtx *s, AVFrame *frame, int *got_frame_ptr)
|
|||||||
if (s->skip_frame) {
|
if (s->skip_frame) {
|
||||||
s->skip_frame = 0;
|
s->skip_frame = 0;
|
||||||
*got_frame_ptr = 0;
|
*got_frame_ptr = 0;
|
||||||
|
av_frame_unref(frame);
|
||||||
} else {
|
} else {
|
||||||
*got_frame_ptr = 1;
|
*got_frame_ptr = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user