[vlc-commits] Dash: use %zu for size_t in C++

Jean-Baptiste Kempf git at videolan.org
Thu Dec 18 23:58:28 CET 2014


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Dec 18 23:57:50 2014 +0100| [03b3a4911e822e28dc2cd1f5f7c5de09a2b00004] | committer: Jean-Baptiste Kempf

Dash: use %zu for size_t in C++

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=03b3a4911e822e28dc2cd1f5f7c5de09a2b00004
---

 modules/stream_filter/dash/mpd/IsoffMainParser.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/stream_filter/dash/mpd/IsoffMainParser.cpp b/modules/stream_filter/dash/mpd/IsoffMainParser.cpp
index 5567be9..07c94cc 100644
--- a/modules/stream_filter/dash/mpd/IsoffMainParser.cpp
+++ b/modules/stream_filter/dash/mpd/IsoffMainParser.cpp
@@ -226,7 +226,7 @@ void IsoffMainParser::parseSegmentBase(Node * segmentBaseNode, SegmentInformatio
         Segment *seg;
 
         size_t start = 0, end = 0;
-        if (std::sscanf(segmentBaseNode->getAttributeValue("indexRange").c_str(), "%"PRIu64"-%"PRIu64, &start, &end) == 2)
+        if (std::sscanf(segmentBaseNode->getAttributeValue("indexRange").c_str(), "%zu-%zu", &start, &end) == 2)
         {
             seg = new IndexSegment(info);
             seg->setByteRange(start, end);



More information about the vlc-commits mailing list