提交 8e7b5ba8 编写于 作者: J James Almer

avcodec/decode: actually propagate AVHWAccel.alloc_frame() return value

Finishes fixing the regression introduced in a1133db3
after the partial fix in b6d6597b.
Signed-off-by: NJames Almer <jamrial@gmail.com>
上级 821fda81
......@@ -1911,10 +1911,12 @@ end:
frame->height = avctx->height;
}
return 0;
fail:
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
av_frame_unref(frame);
if (ret < 0) {
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
av_frame_unref(frame);
}
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册