From 2bbf71777fc447d24803f2287c257d5b41017b76 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 29 Dec 2002 22:35:46 +0000 Subject: [PATCH] removing PIX_FMT_ANY Originally committed as revision 1373 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/avcodec.h | 1 - libavcodec/imgconvert.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index a2a1d3428e..7ccd24bffa 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -60,7 +60,6 @@ enum CodecType { }; enum PixelFormat { - PIX_FMT_ANY = -1, PIX_FMT_YUV420P, PIX_FMT_YUV422, PIX_FMT_RGB24, diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index d1e88a9703..bdf6fe65d2 100644 --- a/libavcodec/imgconvert.c +++ b/libavcodec/imgconvert.c @@ -720,8 +720,6 @@ int img_convert(AVPicture *dst, int dst_pix_fmt, { int i; - assert(pix_fmt != PIX_FMT_ANY && dst_pix_fmt != PIX_FMT_ANY); - if (dst_pix_fmt == pix_fmt) { switch(pix_fmt) { case PIX_FMT_YUV420P: