Le samedi 12 janvier 2013 11:12:18, Diego Biurrun a écrit :
> > --- /dev/null
> > +++ b/libavcodec/vdpau_vc1.c
> > @@ -0,0 +1,127 @@
> > +
> > +#if CONFIG_WMV3_VDPAU_HWACCEL
> > +AVHWAccel ff_wmv3_vdpau_hwaccel = {
> > +    .name           = "wm3_vdpau",
> > +    .type           = AVMEDIA_TYPE_VIDEO,
> > +    .id             = AV_CODEC_ID_WMV3,
> > +    .pix_fmt        = AV_PIX_FMT_VDPAU,
> > +    .start_frame    = vdpau_vc1_start_frame,
> > +    .end_frame      = ff_vdpau_common_end_frame,
> > +    .decode_slice   = vdpau_vc1_decode_slice,
> > +};
> > +#endif
> > +
> > +#if CONFIG_VC1_VDPAU_HWACCEL
> > +AVHWAccel ff_vc1_vdpau_hwaccel = {
> > +    .name           = "vc1_vdpau",
> > +    .type           = AVMEDIA_TYPE_VIDEO,
> > +    .id             = AV_CODEC_ID_VC1,
> > +    .pix_fmt        = AV_PIX_FMT_VDPAU,
> > +    .start_frame    = vdpau_vc1_start_frame,
> > +    .end_frame      = ff_vdpau_common_end_frame,
> > +    .decode_slice   = vdpau_vc1_decode_slice,
> > +};
> > +#endif
> 
> .. drop the ifdefs.

Hmm... the WMV3 ifdef avoids a dangling structure if only vc1_vdpau is 
enabled. vaapi_vc1.c has the same.

-- 
Rémi Denis-Courmont
http://www.remlab.net/
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to