[MPlayer-dev-eng] PATCH [11/12] CoreAVC Decoder Support

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Fri Feb 9 00:02:30 CET 2007


Hello,
On Thu, Feb 08, 2007 at 02:11:46PM -0800, Alan Nisota wrote:
> 011avchack.patch: Another hack to force 'avc1' to be fourcc 'AVC1'  Some 
> versions of CoreAVC only support 'AVC1'

> Index: loader/dshow/DS_VideoDecoder.c
> ===================================================================
> --- loader/dshow/DS_VideoDecoder.c.orig	2007-02-08 12:57:44.000000000 -0800
> +++ loader/dshow/DS_VideoDecoder.c	2007-02-08 12:54:14.000000000 -0800
> @@ -189,6 +189,12 @@
>  #ifdef WIN32_LOADER
>      Setup_LDT_Keeper();
>  #endif
> +    //Start hacks
> +    if (format->biCompression == 0x31637661) 
> +    {
> +      format->biCompression = 0x31435641;
> +    }
> +    //end

This would probably more appropriate in some vd_... file, and should
also use some tag macro instead of hex numbers to be readable.

Greetings,
Reimar Döffinger



More information about the MPlayer-dev-eng mailing list