Re: [FFmpeg-devel] suspicious unconditional `goto fail` in decode.c:1892

2020-05-27 Thread James Almer
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;

[FFmpeg-devel] suspicious unconditional `goto fail` in decode.c:1892

2020-05-27 Thread Pavel Koshevoy
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_f