Mercurial > libavcodec.hg
comparison imgconvert.c @ 940:ef769ec24115 libavcodec
removing PIX_FMT_ANY
author | michaelni |
---|---|
date | Sun, 29 Dec 2002 22:35:46 +0000 |
parents | 48215b2c3888 |
children | fe9083c56733 |
comparison
equal
deleted
inserted
replaced
939:3800f9c70736 | 940:ef769ec24115 |
---|---|
717 int img_convert(AVPicture *dst, int dst_pix_fmt, | 717 int img_convert(AVPicture *dst, int dst_pix_fmt, |
718 AVPicture *src, int pix_fmt, | 718 AVPicture *src, int pix_fmt, |
719 int width, int height) | 719 int width, int height) |
720 { | 720 { |
721 int i; | 721 int i; |
722 | |
723 assert(pix_fmt != PIX_FMT_ANY && dst_pix_fmt != PIX_FMT_ANY); | |
724 | 722 |
725 if (dst_pix_fmt == pix_fmt) { | 723 if (dst_pix_fmt == pix_fmt) { |
726 switch(pix_fmt) { | 724 switch(pix_fmt) { |
727 case PIX_FMT_YUV420P: | 725 case PIX_FMT_YUV420P: |
728 for(i=0;i<3;i++) { | 726 for(i=0;i<3;i++) { |