diff options
author | phintuka <phintuka> | 2010-05-22 12:15:39 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2010-05-22 12:15:39 +0000 |
commit | 9e6c54ed5c4b4250ef22b7cd5b46318805deb933 (patch) | |
tree | 3d1ea4565cdff26395ae8af59b514659881ad720 | |
parent | 743e1c89f8cd9da142d58d17cc8349fed7e60302 (diff) | |
download | xineliboutput-9e6c54ed5c4b4250ef22b7cd5b46318805deb933.tar.gz xineliboutput-9e6c54ed5c4b4250ef22b7cd5b46318805deb933.tar.bz2 |
prev_width, prev_height --> unsigned.
Fixed comparing signed and unsigned vars.
(Thanks to Winfried Koehler)
-rw-r--r-- | xine_post_autocrop.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xine_post_autocrop.c b/xine_post_autocrop.c index 0764a7e0..7d9b54d5 100644 --- a/xine_post_autocrop.c +++ b/xine_post_autocrop.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_post_autocrop.c,v 1.39 2010-05-22 12:09:24 phintuka Exp $ + * $Id: xine_post_autocrop.c,v 1.40 2010-05-22 12:15:39 phintuka Exp $ * */ @@ -158,9 +158,9 @@ typedef struct autocrop_post_plugin_s int analyze_timer; /* Last seen frame */ - int prev_height; - int prev_width; - int64_t prev_pts; + uint32_t prev_height; + uint32_t prev_width; + int64_t prev_pts; /* eliminate jumping when there are subtitles inside bottom bar: - when cropping is active and one frame has larger end_line @@ -1386,7 +1386,7 @@ static vo_frame_t *autocrop_get_frame(xine_video_port_t *port_gen, if (cropping_active && this->use_driver_crop) { if (this->autodetect) { int new_height = this->end_line - this->start_line; - if (new_height > 1 && new_height != height) + if (new_height > 1 && new_height != (int)height) ratio *= (double)height / (double)new_height; } else { ratio *= 4.0 / 3.0; |