Commit e724bdff authored by wm4's avatar wm4 Committed by Mark Thompson

lavc: fix hw_device_ctx operation

Commit b46a77f1 accidentally broke this (requested change that was
added to the patch later and which was not fully tested).
Signed-off-by: 's avatarMark Thompson <sw@jkqxz.net>
parent 68649bfe
...@@ -698,11 +698,9 @@ int ff_decode_get_hw_frames_ctx(AVCodecContext *avctx, ...@@ -698,11 +698,9 @@ int ff_decode_get_hw_frames_ctx(AVCodecContext *avctx,
ret = avcodec_get_hw_frames_parameters(avctx, ret = avcodec_get_hw_frames_parameters(avctx,
avctx->hw_device_ctx, avctx->hw_device_ctx,
avctx->hwaccel->pix_fmt, avctx->hwaccel->pix_fmt,
avctx->hw_frames_ctx); &avctx->hw_frames_ctx);
if (ret < 0) { if (ret < 0)
av_buffer_unref(&avctx->hw_frames_ctx);
return ret; return ret;
}
frames_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data; frames_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data;
......
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