[MPlayer-cvslog] r23499 - trunk/libmpcodecs/vf_scale.c

reimar subversion at mplayerhq.hu
Thu Jun 7 22:01:05 CEST 2007


Author: reimar
Date: Thu Jun  7 22:01:05 2007
New Revision: 23499

Log:
100l, fix compile error in r23498 due to bad copy in paste


Modified:
   trunk/libmpcodecs/vf_scale.c

Modified: trunk/libmpcodecs/vf_scale.c
==============================================================================
--- trunk/libmpcodecs/vf_scale.c	(original)
+++ trunk/libmpcodecs/vf_scale.c	Thu Jun  7 22:01:05 2007
@@ -606,7 +606,7 @@ struct SwsContext *sws_getContextFromCmd
 
 	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);



More information about the MPlayer-cvslog mailing list