diff options
-rw-r--r-- | wiretap/mp2t.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/mp2t.c b/wiretap/mp2t.c index e80faf5e89..1ef731e49c 100644 --- a/wiretap/mp2t.c +++ b/wiretap/mp2t.c @@ -117,7 +117,7 @@ mp2t_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) * It would be really cool to be able to configure the bitrate... */ tmp = ((guint64)(*data_offset - mp2t->start_offset) * 8); /* offset, in bits */ - wth->phdr.ts.secs = tmp / MP2T_QAM256_BITRATE; + wth->phdr.ts.secs = (time_t)(tmp / MP2T_QAM256_BITRATE); wth->phdr.ts.nsecs = (int)((tmp % MP2T_QAM256_BITRATE) * 1000000000 / MP2T_QAM256_BITRATE); wth->phdr.caplen = MP2T_SIZE; |