[FFmpeg-cvslog] r20502 - in trunk: configure libavcodec/allcodecs.c libavcodec/h263dec.c libavcodec/imgconvert.c libavcodec/vdpau.c libavcodec/vdpau.h libavcodec/vdpau_internal.h libavutil/pixfmt.h

Uoti Urpala uoti.urpala
Tue Dec 8 22:19:12 CET 2009


On Tue, 2009-12-08 at 15:52 -0500, Alex Converse wrote:
> The attached patch should work but I don't want to roll back my vdpau
> to verify it.
> 
> Can someone else test?


> diff --git a/libavcodec/vdpau.h b/libavcodec/vdpau.h
> index a8fa4d3..64762ac 100644
> --- a/libavcodec/vdpau.h
> +++ b/libavcodec/vdpau.h
> @@ -73,7 +73,9 @@ struct vdpau_render_state {
>          VdpPictureInfoH264        h264;
>          VdpPictureInfoMPEG1Or2    mpeg;
>          VdpPictureInfoVC1          vc1;
> +#if CONFIG_MPEG4_VDPAU_DECODER
>          VdpPictureInfoMPEG4Part2 mpeg4;
> +#endif

libavcodec/vdpau.h is a public header, you can't use FFmpeg CONFIG_*
defines in it. This would compile OK when building FFmpeg but
applications including the installed header would not be able to use the
field unless they set that same define. That's why I explicitly
mentioned the bit about "#ifdef in a public header" in my earlier mail.




More information about the ffmpeg-cvslog mailing list