# HG changeset patch # User Stepan777 # Date 1340558120 -14400 # Node ID c65992e2d7945205451fbf14448320e671ad1523 # Parent fd707afbc3a288ba59bfbf8762b9865616c6e5ea correctly fix odd dimensions (it was incorrectly fixed in previous commit) diff -r fd707afbc3a2 -r c65992e2d794 hedgewars/avwrapper.c --- a/hedgewars/avwrapper.c Sun Jun 24 20:57:02 2012 +0400 +++ b/hedgewars/avwrapper.c Sun Jun 24 21:15:20 2012 +0400 @@ -208,8 +208,8 @@ // put parameters // resolution must be a multiple of two - g_pVideo->width = g_Width; - g_pVideo->height = g_Height; + g_pVideo->width = g_Width & ~1; // make even (dimensions should be even) + g_pVideo->height = g_Height & ~1; // make even /* time base: this is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented. for fixed-fps content, timebase should be 1/framerate and timestamp increments should be @@ -344,8 +344,8 @@ AddFileLogRaw = pAddFileLogRaw; av_log_set_callback( &LogCallback ); - g_Width = Width & ~1; // make even (dimensions should be even) - g_Height = Height & ~1; // make even + g_Width = Width; + g_Height = Height; g_Framerate.num = FramerateNum; g_Framerate.den = FramerateDen; g_VQuality = VQuality;