Commit 4c079857 authored by Rodger Combs's avatar Rodger Combs Committed by Aman Gupta

lavc/videotoolbox: fix failure to decode PAFF

Signed-off-by: 's avatarAman Gupta <aman@tmm1.net>
parent d64183ea
...@@ -326,11 +326,8 @@ static int videotoolbox_set_frame(AVCodecContext *avctx, AVFrame *frame) ...@@ -326,11 +326,8 @@ static int videotoolbox_set_frame(AVCodecContext *avctx, AVFrame *frame)
CVPixelBufferRef *ref = (CVPixelBufferRef *)frame->buf[0]->data; CVPixelBufferRef *ref = (CVPixelBufferRef *)frame->buf[0]->data;
if (*ref) { if (*ref)
av_log(avctx, AV_LOG_ERROR, "videotoolbox: frame already set?\n"); CVPixelBufferRelease(*ref);
av_frame_unref(frame);
return AVERROR_EXTERNAL;
}
*ref = vtctx->frame; *ref = vtctx->frame;
vtctx->frame = NULL; vtctx->frame = NULL;
......
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