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

Carl Eugen Hoyos cehoyos
Tue Nov 10 19:13:58 CET 2009


On Tuesday 10 November 2009 13:38:08 Michael Niedermayer wrote:
> On Mon, Nov 09, 2009 at 11:40:41PM +0100, Carl Eugen Hoyos wrote:

> > +        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 ...

True.
New patch attached, please review.

Carl Eugen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patchvdpaumpeg4-3.diff
Type: text/x-diff
Size: 7612 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091110/7a1e1556/attachment.diff>



More information about the ffmpeg-devel mailing list