Commit 5b1563c5 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

modules/codec/ffmpeg/video.c: Fix Remi Duraffort's PIX_FMT_RGBA issue by...

modules/codec/ffmpeg/video.c: Fix Remi Duraffort's PIX_FMT_RGBA issue by testing directly for PIX_FMT_RGBA definition, instead of testing if swscale is present.
parent 944d0da4
......@@ -126,7 +126,7 @@ static uint32_t ffmpeg_PixFmtToChroma( int i_ff_chroma )
return VLC_FOURCC('R','V','2','4');
case PIX_FMT_RGBA32:
return VLC_FOURCC('R','V','3','2');
#if defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE)
#ifdef PIX_FMT_RGBA
case PIX_FMT_RGBA:
return VLC_FOURCC('R','G','B','A');
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment