[Ffmpeg-devel] [PATCH] adds missing rgb/bgr 15 tags to raw decoder

Oded Shimon ods15
Fri Oct 27 16:59:26 CEST 2006


On Fri, Oct 27, 2006 at 11:57:58AM -0300, Reynaldo H. Verdejo Pinochet wrote:
> As on subject.
> 
> Ok to commit?
> 
> 	Reynaldo

> Index: libavcodec/raw.c
> ===================================================================
> --- libavcodec/raw.c	(revision 6790)
> +++ libavcodec/raw.c	(working copy)
> @@ -52,6 +52,8 @@
>      { PIX_FMT_YUV422,  MKTAG('Y', '4', '2', '2') },
>      { PIX_FMT_UYVY422, MKTAG('U', 'Y', 'V', 'Y') },
>      { PIX_FMT_GRAY8,   MKTAG('G', 'R', 'E', 'Y') },
> +    { PIX_FMT_RGB15,   MKTAG('R', 'G', 'B', '15') },
> +    { PIX_FMT_BGR15,   MKTAG('B', 'G', 'R', '15') },

He probably meant without the '' quotes on the 15. That's a rather obscure 
and rare feature of C which I doubt you want to use here... Also I'm 
fairly certain it would cause an overflow here.

- ods15




More information about the ffmpeg-devel mailing list