changeset 23479:db82492b2f30

100l, fix compile error in r23498 due to bad copy in paste
author reimar
date Thu, 07 Jun 2007 20:01:05 +0000
parents 8fae00da2059
children 37ca31c6a615
files libmpcodecs/vf_scale.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);