[FFmpeg-devel] suspicious unconditional `goto fail` in decode.c:1892
James Almer
jamrial at gmail.com
Thu May 28 05:15:17 EEST 2020
On 5/27/2020 3:55 PM, Pavel Koshevoy wrote:
> Hi,
>
> I've run into a regression that I've tracked down to this snippet of
> code in libavcodec/decode.c
> ```
> if (hwaccel) {
> if (hwaccel->alloc_frame) {
> ret = hwaccel->alloc_frame(avctx, frame);
> goto fail;
> }
> } else
> avctx->sw_pix_fmt = avctx->pix_fmt;
> ```
>
> The `goto fail` is unconditional, and was introduced in commit a1133db30ef
> I'd like to confirm whether it is intentional.
>
> Thank you,
> Pavel.
Should be fixed in b6d6597bef.
More information about the ffmpeg-devel
mailing list