1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

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

Finishes fixing the regression introduced in a1133db30ef07896afd96f067e5c51531a4e85ab
after the partial fix in b6d6597bef66531ec07c07a7125b88aee38fb220.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2020-05-29 15:07:41 -03:00
parent 821fda819a
commit 8e7b5ba80e

View File

@ -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;
} }