diff options
-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; |