X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Futils.c;h=de371e8a815a792f88a577771604a5e58c61d677;hb=0de0c75ebbecfa86f7c3a12f0cf748e79d221513;hp=0bc0b3888f55b46adf039ff043f84eaaa910bbf2;hpb=c218d8218d95684c5e1b4c09ed0f258457f0ae7c;p=ffmpeg diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 0bc0b3888f5..de371e8a815 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -119,24 +119,6 @@ static int volatile entangled_thread_counter = 0; static void *codec_mutex; static void *avformat_mutex; -#if CONFIG_RAISE_MAJOR -# define LIBNAME "LIBAVCODEC_155" -#else -# define LIBNAME "LIBAVCODEC_55" -#endif - -#if FF_API_FAST_MALLOC && CONFIG_SHARED && HAVE_SYMVER -FF_SYMVER(void*, av_fast_realloc, (void *ptr, unsigned int *size, size_t min_size), LIBNAME) -{ - return av_fast_realloc(ptr, size, min_size); -} - -FF_SYMVER(void, av_fast_malloc, (void *ptr, unsigned int *size, size_t min_size), LIBNAME) -{ - av_fast_malloc(ptr, size, min_size); -} -#endif - static inline int ff_fast_malloc(void *ptr, unsigned int *size, size_t min_size, int zero_realloc) { void **p = ptr; @@ -1531,9 +1513,7 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code } else if (avctx->channel_layout) { avctx->channels = av_get_channel_layout_nb_channels(avctx->channel_layout); } - if(avctx->codec_type == AVMEDIA_TYPE_VIDEO && - avctx->codec_id != AV_CODEC_ID_PNG // For mplayer - ) { + if(avctx->codec_type == AVMEDIA_TYPE_VIDEO) { if (avctx->width <= 0 || avctx->height <= 0) { av_log(avctx, AV_LOG_ERROR, "dimensions not set\n"); ret = AVERROR(EINVAL);