mediastreamer/mediastreamer-2.16.1-x86-fix-conversion-error-2.patch

12 lines
661 B
Diff
Raw Normal View History

--- mediastreamer2-2.16.1/src/otherfilters/mspcapfileplayer.c.orig 2017-11-27 14:38:26.992825972 +0100
+++ mediastreamer2-2.16.1/src/otherfilters/mspcapfileplayer.c 2017-11-27 14:39:52.968135619 +0100
@@ -238,7 +238,7 @@
}
diff_ms = (d->pcap_timeref == MSPCAPFilePlayerTimeRefRTP) ?
((ts - d->pcap_initial_ts) * 1000) / d->rate
- : 1000 * (d->pcap_hdr->ts.tv_sec - d->pcap_initial_timeval.tv_sec)
+ : (unsigned int)1000 * (d->pcap_hdr->ts.tv_sec - d->pcap_initial_timeval.tv_sec)
+ (d->pcap_hdr->ts.tv_usec - d->pcap_initial_timeval.tv_usec) / 1000;
if ((f->ticker->time - d->pcap_initial_time) >= diff_ms) {