[FFmpeg-cvslog] r30641 - trunk/libswscale/utils.c
stefano
subversion
Thu Feb 18 22:12:06 CET 2010
Author: stefano
Date: Thu Feb 18 22:12:05 2010
New Revision: 30641
Log:
Merge two if conditions, allow to decrese the level of indentation of
the block.
Modified:
trunk/libswscale/utils.c
Modified: trunk/libswscale/utils.c
==============================================================================
--- trunk/libswscale/utils.c Thu Feb 18 21:24:52 2010 (r30640)
+++ trunk/libswscale/utils.c Thu Feb 18 22:12:05 2010 (r30641)
@@ -1566,17 +1566,17 @@ struct SwsContext *sws_getCachedContext(
if (!param)
param = default_param;
- if (context) {
- if (context->srcW != srcW || context->srcH != srcH ||
+ if (context &&
+ (context->srcW != srcW || context->srcH != srcH ||
context->srcFormat != srcFormat ||
context->dstW != dstW || context->dstH != dstH ||
context->dstFormat != dstFormat || context->flags != flags ||
- context->param[0] != param[0] || context->param[1] != param[1])
+ context->param[0] != param[0] || context->param[1] != param[1]))
{
sws_freeContext(context);
context = NULL;
}
- }
+
if (!context) {
return sws_getContext(srcW, srcH, srcFormat,
dstW, dstH, dstFormat, flags,
More information about the ffmpeg-cvslog
mailing list