[Ffmpeg-devel] [PATCH] Make avformat_get_context_defaults static

Michael Niedermayer michaelni
Fri Sep 8 12:34:38 CEST 2006


Hi

On Fri, Sep 08, 2006 at 11:19:51AM +0200, Panagiotis Issaris wrote:
> Hi,
> 
> The attached patch makes avformat_get_context_defaults() static
> when the next compatibility breaking change occurs. It is not being
> used outside of libavformat/utils.c. Suggested by Michael Niedermayer [*].
> 
>  utils.c |    3 +++
>  1 file changed, 3 insertions(+)
> 
> With friendly regards,
> Takis
> 
> * http://article.gmane.org/gmane.comp.video.ffmpeg.devel/36377

> diff --git a/libavformat/utils.c b/libavformat/utils.c
> index ea447c1..5edaffa 100644
> --- a/libavformat/utils.c
> +++ b/libavformat/utils.c
> @@ -474,6 +474,9 @@ static const AVOption options[]={
>  
>  static const AVClass av_format_context_class = { "AVFormatContext", format_to_name, options };
>  
> +#if LIBAVCODEC_VERSION_INT > ((52<<16)+(13<<0)+0)

shouldnt it be
LIBAVCODEC_VERSION_INT >= ((52<<16)+(0<<8)+0)


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

In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is




More information about the ffmpeg-devel mailing list