Generally, mpegts has wrong start time(positive large value).
So duration do not use start time for mpeg-ts.
Change-Id: I97ddc31860bdeb489abe41f4fbc7e9b61d2572d5
/**
*@note asf has long duration bug. and Some content's start time is wrong(negative number).
+ * Generally, mpegts has wrong start time(positive large value). So skip start time for mpegts format.
*/
- if (pFormatCtx->start_time < 0) {
+ if (pFormatCtx->start_time < 0 || formatContext->formatType == MM_FILE_FORMAT_M2TS) {
debug_warning(DEBUG, "Wrong Start time = %"PRId64"\n", pFormatCtx->start_time);
formatContext->duration = (long long)(pFormatCtx->duration) * 1000 / AV_TIME_BASE;
} else {
Name: libmm-fileinfo
Summary: Media Fileinfo
-Version: 0.6.82
+Version: 0.6.83
Release: 1
Group: System/Libraries
License: Apache-2.0