You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/decode: actually propagate AVHWAccel.alloc_frame() return value
Finishes fixing the regression introduced ina1133db30e
after the partial fix inb6d6597bef
. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -1911,10 +1911,12 @@ end:
|
|||||||
frame->height = avctx->height;
|
frame->height = avctx->height;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
|
||||||
fail:
|
fail:
|
||||||
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
|
if (ret < 0) {
|
||||||
av_frame_unref(frame);
|
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
|
||||||
|
av_frame_unref(frame);
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user