[FFmpeg-devel] [PATCH] Fix compilation with libutvideo version 12.0.0

Carl Eugen Hoyos cehoyos at ag.or.at
Sun Jan 13 00:04:10 CET 2013

Stephen Hutchinson <qyot27 <at> gmail.com> writes:

> +++ b/libavcodec/libutvideodec.cpp
> @@ -61,11 +61,11 @@ static av_cold int
> utvideo_decode_init(AVCodecContext *avctx)
>          break;
>      case MKTAG('U', 'L', 'R', 'G'):
>          avctx->pix_fmt = AV_PIX_FMT_BGR24;
> -        format = UTVF_RGB24_WIN;
> +        format = UTVF_NFCC_BGR_BU;

If the constants are the only difference to earlier 
versions, you could also add some defines:

#if !defined(UTVF_RGB24_WIN)

I am not saying this is better, but if it's the 
only difference, it may make users happier.

Carl Eugen

More information about the ffmpeg-devel mailing list