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

lavc/videotoolbox: fix failure to decode PAFF

Signed-off-by: Aman Gupta <aman@tmm1.net>
This commit is contained in:
Rodger Combs 2018-03-28 23:19:28 -05:00 committed by Aman Gupta
parent d64183ea5d
commit 4c0798578c

View File

@ -326,11 +326,8 @@ static int videotoolbox_set_frame(AVCodecContext *avctx, AVFrame *frame)
CVPixelBufferRef *ref = (CVPixelBufferRef *)frame->buf[0]->data;
if (*ref) {
av_log(avctx, AV_LOG_ERROR, "videotoolbox: frame already set?\n");
av_frame_unref(frame);
return AVERROR_EXTERNAL;
}
if (*ref)
CVPixelBufferRelease(*ref);
*ref = vtctx->frame;
vtctx->frame = NULL;