summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/httplive
diff options
context:
space:
mode:
authorOscar Rydhé <oscar.rydhe@sonymobile.com>2013-12-17 09:53:18 +0100
committerTakeshi Aimi <takeshi.aimi@sonymobile.com>2013-12-19 13:48:04 +0900
commitabd5feeea499ee7337125223df4ea22cae19cd20 (patch)
treecafee3ff937b8af763d12bce413563df1dda8837 /media/libstagefright/httplive
parent1f95555c69219180f792ac742cc0e386496c29e6 (diff)
downloadframeworks_av-abd5feeea499ee7337125223df4ea22cae19cd20.zip
frameworks_av-abd5feeea499ee7337125223df4ea22cae19cd20.tar.gz
frameworks_av-abd5feeea499ee7337125223df4ea22cae19cd20.tar.bz2
HLS: Fixed rounding error with decimal segment duration
If segment duration is specified with decimal value only the integer value will be used, causing the stream duration to be wrong. Reported to Android public issue tracker: https://code.google.com/p/android/issues/detail?id=56223 Change-Id: I34fb7a81af6ad3d9a214228cfe3724636ebf5ab5
Diffstat (limited to 'media/libstagefright/httplive')
-rw-r--r--media/libstagefright/httplive/M3UParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/httplive/M3UParser.cpp b/media/libstagefright/httplive/M3UParser.cpp
index 243888c..dd248cb 100644
--- a/media/libstagefright/httplive/M3UParser.cpp
+++ b/media/libstagefright/httplive/M3UParser.cpp
@@ -608,7 +608,7 @@ status_t M3UParser::parseMetaDataDuration(
if (meta->get() == NULL) {
*meta = new AMessage;
}
- (*meta)->setInt64(key, (int64_t)x * 1E6);
+ (*meta)->setInt64(key, (int64_t)(x * 1E6));
return OK;
}