mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2023-10-10 13:37:41 +02:00
Fix cuvid compile
This commit is contained in:
parent
c06b891c2b
commit
5ef6597340
3
video.c
3
video.c
@ -2751,7 +2751,7 @@ int init_filters(AVCodecContext * dec_ctx, CuvidDecoder * decoder, AVFrame * fra
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef VAAPI
|
||||||
static int init_generic_hwaccel(CuvidDecoder * decoder, enum AVPixelFormat hw_fmt,AVCodecContext * video_ctx)
|
static int init_generic_hwaccel(CuvidDecoder * decoder, enum AVPixelFormat hw_fmt,AVCodecContext * video_ctx)
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -2814,6 +2814,7 @@ error:
|
|||||||
av_buffer_unref(&decoder->cached_hw_frames_ctx);
|
av_buffer_unref(&decoder->cached_hw_frames_ctx);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
///
|
///
|
||||||
/// Callback to negotiate the PixelFormat.
|
/// Callback to negotiate the PixelFormat.
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user