summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libavcodec/avcodec.h1
-rw-r--r--libavcodec/imgconvert.c2
2 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index a2a1d34..7ccd24b 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 d1e88a9..bdf6fe6 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:
OpenPOWER on IntegriCloud