mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 03:52:22 +02:00
vd_ffmpeg: fix compilation with neither VDPAU nor XvMC enabled
The get_format() function was defined under
#if CONFIG_XVMC || CONFIG_VDPAU
but recent commit ca217f4557
added an
unconditional reference to it, causing linking to fail with an
undefined reference if neither feature was enabled. Fix by removing
the #if, there's no reason reason why it would be needed.
This commit is contained in:
parent
1ef8d887d4
commit
ffc3db2239
@ -864,7 +864,6 @@ static struct mp_image *decode(struct sh_video *sh, void *data, int len,
|
||||
return mpi;
|
||||
}
|
||||
|
||||
#if CONFIG_XVMC || CONFIG_VDPAU
|
||||
static enum PixelFormat get_format(struct AVCodecContext *avctx,
|
||||
const enum PixelFormat *fmt){
|
||||
enum PixelFormat selected_format;
|
||||
@ -883,7 +882,6 @@ static enum PixelFormat get_format(struct AVCodecContext *avctx,
|
||||
selected_format = fmt[i];
|
||||
return selected_format;
|
||||
}
|
||||
#endif /* CONFIG_XVMC || CONFIG_VDPAU */
|
||||
|
||||
const struct vd_functions mpcodecs_vd_ffmpeg = {
|
||||
.info = &info,
|
||||
|
Loading…
Reference in New Issue
Block a user