diff options
Diffstat (limited to 'modules/gst_video1')
-rw-r--r-- | modules/gst_video1/encode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gst_video1/encode.c b/modules/gst_video1/encode.c index d0a3d44..0c3a088 100644 --- a/modules/gst_video1/encode.c +++ b/modules/gst_video1/encode.c @@ -123,7 +123,7 @@ static GstFlowReturn appsink_new_sample_cb(GstAppSink *sink, if (sample) { GstClockTime ts; - uint32_t rtp_ts; + uint64_t rtp_ts; buffer = gst_sample_get_buffer(sample); gst_buffer_map( buffer, &info, (GstMapFlags)(GST_MAP_READ) ); @@ -139,7 +139,7 @@ static GstFlowReturn appsink_new_sample_cb(GstAppSink *sink, } else { /* convert from nanoseconds to RTP clock */ - rtp_ts = (uint32_t)((90000ULL * ts) / 1000000000UL); + rtp_ts = (uint64_t)((90000ULL * ts) / 1000000000UL); } h264_packetize(rtp_ts, data, size, st->encoder.pktsize, |