# HG changeset patch # User reimar # Date 1181246465 0 # Node ID db82492b2f308836ce4ebc8ad548d622717f01af # Parent 8fae00da20597417f780eec5611891cd986e8c6c 100l, fix compile error in r23498 due to bad copy in paste diff -r 8fae00da2059 -r db82492b2f30 libmpcodecs/vf_scale.c --- a/libmpcodecs/vf_scale.c Thu Jun 07 19:11:25 2007 +0000 +++ b/libmpcodecs/vf_scale.c Thu Jun 07 20:01:05 2007 +0000 @@ -606,7 +606,7 @@ dfmt = imgfmt2pixfmt(dstFormat); sfmt = imgfmt2pixfmt(srcFormat); - if (outfmt == IMGFMT_RGB8 || outfmt == IMGFMT_BGR8) sfmt = PIX_FMT_PAL8; + if (srcFormat == IMGFMT_RGB8 || srcFormat == IMGFMT_BGR8) sfmt = PIX_FMT_PAL8; sws_getFlagsAndFilterFromCmdLine(&flags, &srcFilterParam, &dstFilterParam); return sws_getContext(srcW, srcH, sfmt, dstW, dstH, dfmt, flags | get_sws_cpuflags(), srcFilterParam, dstFilterParam, NULL);