diff --git a/libavformat/utils.c b/libavformat/utils.c index ab64bfc22b..b8f03ff270 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -336,10 +336,8 @@ static const AVOption options[]={ static const AVClass av_format_context_class = { "AVFormatContext", format_to_name, options }; -#if LIBAVFORMAT_VERSION_INT >= ((51<<16)+(0<<8)+0) -static -#endif -void avformat_get_context_defaults(AVFormatContext *s){ +static void avformat_get_context_defaults(AVFormatContext *s) +{ memset(s, 0, sizeof(AVFormatContext)); s->av_class = &av_format_context_class;