[FFmpeg-devel] [PATCH]Fix MPlayer VC1 vdpau decoding
Michael Niedermayer
michaelni
Wed Feb 25 18:47:14 CET 2009
On Wed, Feb 25, 2009 at 06:35:40PM +0100, Michael Niedermayer wrote:
> On Wed, Feb 25, 2009 at 05:40:33PM +0100, Carl Eugen Hoyos wrote:
> > HI!
> >
> > Attached is a patch against MPlayer svn to fix decoding of VC1 with
> > hardware acceleration.
> >
> > Is the libavcodec part ok?
> >
> > Carl Eugen
>
> > Index: libavcodec/vc1.c
> > ===================================================================
> > --- libavcodec/vc1.c (revision 17587)
> > +++ libavcodec/vc1.c (working copy)
> > @@ -4379,6 +4379,7 @@
> > CODEC_CAP_DR1 | CODEC_CAP_DELAY | CODEC_CAP_HWACCEL_VDPAU,
> > NULL,
> > .long_name = NULL_IF_CONFIG_SMALL("Windows Media Video 9 VDPAU"),
> > + .pix_fmts = (enum PixelFormat[]){PIX_FMT_VDPAU_WMV3, PIX_FMT_NONE}
> > };
> > #endif
> >
> > @@ -4395,5 +4396,6 @@
> > CODEC_CAP_DR1 | CODEC_CAP_DELAY | CODEC_CAP_HWACCEL_VDPAU,
> > NULL,
> > .long_name = NULL_IF_CONFIG_SMALL("SMPTE VC-1 VDPAU"),
> > + .pix_fmts = (enum PixelFormat[]){PIX_FMT_VDPAU_VC1, PIX_FMT_NONE}
> > };
> > #endif
>
> looks ok
also you will likely have to fix the entries in
pix_fmt_info so they contain
.x_chroma_shift = 1, .y_chroma_shift = 1,
or alternatively maybe setting the pix_fmts lists (incorrectly) to
ff_pixfmt_list_420
might be a simpler fix
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In a rich man's house there is no place to spit but his face.
-- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090225/7f959ffe/attachment.pgp>
More information about the ffmpeg-devel
mailing list