mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-10-28 10:04:37 +08:00
apv_decode: allocate the hwaccel private data unconditionally
ff_hwaccel_frame_priv_alloc() is a no-op without a hwaccel, so the check around it is redundant.
This commit is contained in:
1 parent
87e780662b
commit
e7782ef185
1 file changed
+3
-5
@@ -383,11 +383,9 @@ static int apv_decode(AVCodecContext *avctx, AVFrame *output,
|
||||
|
||||
apv_derive_tile_info(tile_info, &input->frame_header);
|
||||
|
||||
if (avctx->hwaccel) {
|
||||
err = ff_hwaccel_frame_priv_alloc(avctx, &apv->hwaccel_picture_private);
|
||||
if (err < 0)
|
||||
return err;
|
||||
}
|
||||
err = ff_hwaccel_frame_priv_alloc(avctx, &apv->hwaccel_picture_private);
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
||||
ff_thread_finish_setup(avctx);
|
||||
|
||||
|
||||
Reference in new issue
Block a user