Commit f3acdd44 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'a1ee1648'

* commit 'a1ee1648':
  lavc/decode_video(): always unref the frame if there is no output in decode_video

Conflicts:
	libavcodec/utils.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 04dac5d1 a1ee1648
......@@ -2090,9 +2090,6 @@ fail:
ret = avpkt->size;
}
if (ret < 0 && picture->buf[0])
av_frame_unref(picture);
if (*got_picture_ptr) {
if (!avctx->refcounted_frames) {
avci->to_free = *picture;
......@@ -2105,7 +2102,8 @@ fail:
guess_correct_pts(avctx,
picture->pkt_pts,
picture->pkt_dts));
}
} else
av_frame_unref(picture);
} else
ret = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment