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

Michael Niedermayer michaelni
Tue Nov 10 19:41:36 CET 2009


On Tue, Nov 10, 2009 at 07:13:58PM +0100, Carl Eugen Hoyos wrote:
> 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

>  configure                   |    2 +
>  libavcodec/allcodecs.c      |    1 
>  libavcodec/h263dec.c        |   23 ++++++++++++++++++++
>  libavcodec/imgconvert.c     |    5 ++++
>  libavcodec/vdpau.c          |   50 ++++++++++++++++++++++++++++++++++++++++++++
>  libavcodec/vdpau.h          |    1 
>  libavcodec/vdpau_internal.h |    3 ++
>  libavutil/pixfmt.h          |    1 
>  8 files changed, 86 insertions(+)
> cf8122bb81ebfa7da9e5cc58b908d7e32ca70415  patchvdpaumpeg4-3.diff

looks good

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

The misfortune of the wise is better than the prosperity of the fool.
-- Epicurus
-------------- 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/c5118ac7/attachment.pgp>



More information about the ffmpeg-devel mailing list