aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/imgconvert.c
diff options
context:
space:
mode:
authorZdenek Kabelac <kabi@informatics.muni.cz>2002-04-08 21:03:35 +0000
committerZdenek Kabelac <kabi@informatics.muni.cz>2002-04-08 21:03:35 +0000
commitbc657ac31dfd2458d52736e36af03615d8c1664b (patch)
tree4e1751851c8c1820236d521694377fe1cdecccd8 /libavcodec/imgconvert.c
parent4606ac8dee9985bae07fcd0c0e04d6e2c63d6dc5 (diff)
downloadffmpeg-bc657ac31dfd2458d52736e36af03615d8c1664b.tar.gz
* using pixtype as enum - by Philip Gladstone
Originally committed as revision 389 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/imgconvert.c')
-rw-r--r--libavcodec/imgconvert.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index d39b6c1e9b..b3f9a367bf 100644
--- a/libavcodec/imgconvert.c
+++ b/libavcodec/imgconvert.c
@@ -361,6 +361,8 @@ 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: