# HG changeset patch # User reimar # Date 1178960084 0 # Node ID 4e416a0d76651b568c5a480eb2aa2acc5a4a4155 # Parent e1935bbb44e257a109565751009d42af2a039379 Factor common code out of if in x11_common.c diff -r e1935bbb44e2 -r 4e416a0d7665 libvo/vo_x11.c --- a/libvo/vo_x11.c Fri May 11 23:15:11 2007 +0000 +++ b/libvo/vo_x11.c Sat May 12 08:54:44 2007 +0000 @@ -654,13 +654,12 @@ { dstStride[0] = -image_width * ((bpp + 7) / 8); dst[0] = ImageData - dstStride[0] * (image_height - 1); - sws_scale_ordered(swsContext, src, stride, y, h, dst, dstStride); } else { dstStride[0] = image_width * ((bpp + 7) / 8); dst[0] = ImageData; - sws_scale_ordered(swsContext, src, stride, y, h, dst, dstStride); } + sws_scale_ordered(swsContext, src, stride, y, h, dst, dstStride); return 0; }