x264enc: fix unsigned comparison warning
authorMatej Knopp <matej.knopp@gmail.com>
Tue, 3 Sep 2013 18:28:35 +0000 (20:28 +0200)
committerSebastian Dröge <slomo@circular-chaos.org>
Wed, 4 Sep 2013 08:47:55 +0000 (10:47 +0200)
ext/x264/gstx264enc.c

index 1eb6f1c..1be3ddf 100644 (file)
@@ -1964,7 +1964,7 @@ gst_x264_enc_encode_frame (GstX264Enc * encoder, x264_picture_t * pic_in,
     }
   }
 
-  if (pic_out.i_dts + encoder->dts_offset < 0) {
+  if (pic_out.i_dts + (gint64) encoder->dts_offset < 0) {
     /* should be ok now, surprise if not */
     GST_WARNING_OBJECT (encoder, "negative dts after offset compensation");
     frame->dts = GST_CLOCK_TIME_NONE;