# HG changeset patch # User gpoirier # Date 1157717558 0 # Node ID c87b57a5306294558220e42db4538cdf31f997aa # Parent e12ffbf1070da67f8ee02c65e8268ac8bdafdf44 makes avformat_get_context_defaults() static when the next compatibility breaking change occurs, as suggested by Michael Niedermayer here: http://article.gmane.org/gmane.comp.video.ffmpeg.devel/36377 Patch by Takis Original thread: Date: Sep 8, 2006 11:19 AM Subject: [Ffmpeg-devel] [PATCH] Make avformat_get_context_defaults static diff -r e12ffbf1070d -r c87b57a53062 utils.c --- a/utils.c Thu Sep 07 20:19:37 2006 +0000 +++ b/utils.c Fri Sep 08 12:12:38 2006 +0000 @@ -474,6 +474,9 @@ static const AVClass av_format_context_class = { "AVFormatContext", format_to_name, options }; +#if LIBAVCODEC_VERSION_INT > ((52<<16)+(0<<8)+0) +static +#endif void avformat_get_context_defaults(AVFormatContext *s){ memset(s, 0, sizeof(AVFormatContext));