[FFmpeg-devel] [PATCH]Allow MPEG4 VDPAU decoding

Michael Niedermayer michaelni
Tue Nov 10 13:38:08 CET 2009


On Mon, Nov 09, 2009 at 11:40:41PM +0100, Carl Eugen Hoyos wrote:
> On Monday 09 November 2009 21:43:52 Michael Niedermayer wrote:
> > On Fri, Nov 06, 2009 at 11:00:37PM +0100, Carl Eugen Hoyos wrote:
> 
> > > +    .pix_fmts= (enum PixelFormat[]){PIX_FMT_NONE}
> >
> >        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >
> > this looks wrong, no pixel formats
> 
> New try attached.
[...]

> @@ -67,6 +68,8 @@
>          s->h263_pred = 1;
>          s->low_delay = 0; //default, might be overriden in the vol header during header parsing
>          avctx->chroma_sample_location = AVCHROMA_LOC_LEFT;
> +        if (CONFIG_MPEG4_VDPAU_DECODER && (s->avctx->codec->capabilities & CODEC_CAP_HWACCEL_VDPAU))
> +            avctx->pix_fmt = PIX_FMT_VDPAU_MPEG4;
>          break;
>      case CODEC_ID_MSMPEG4V1:
>          s->h263_msmpeg4 = 1;

is this needed?
avctx->pix_fmt= avctx->get_format(avctx, avctx->codec->pix_fmts);
should alraedy set it ...

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- 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/20091110/98596017/attachment.pgp>



More information about the ffmpeg-devel mailing list