summaryrefslogtreecommitdiff
path: root/ext/x264/gstx264enc.c
diff options
context:
space:
mode:
authorMatej Knopp <matej.knopp@gmail.com>2013-09-03 20:28:35 +0200
committerSebastian Dröge <slomo@circular-chaos.org>2013-09-04 10:47:55 +0200
commitae45623450e28c8c8bd5017d04605facc27298f3 (patch)
treedef70d2a4608cec63cd40dfcfa378fd44ee126b8 /ext/x264/gstx264enc.c
parentdc6b976213c42fa038756b20fada1c01378e52a7 (diff)
x264enc: fix unsigned comparison warning
Diffstat (limited to 'ext/x264/gstx264enc.c')
-rw-r--r--ext/x264/gstx264enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c
index 1eb6f1cc..1be3ddf8 100644
--- a/ext/x264/gstx264enc.c
+++ b/ext/x264/gstx264enc.c
@@ -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;