Commit 95422ad5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Revert "demux: hls: fix truncated value (cid #1346923, #1313683)"

This reverts commit 7661da70.
This does not fix the overflow as claimed.
parent c9033115
...@@ -78,8 +78,8 @@ std::pair<std::size_t,std::size_t> Attribute::getByteRange() const ...@@ -78,8 +78,8 @@ std::pair<std::size_t,std::size_t> Attribute::getByteRange() const
is >> length; is >> length;
if(!is.eof()) if(!is.eof())
{ {
char c; char c = is.get();
if(is.get(c) && c == '@') if(c == '@' && !is.eof())
is >> offset; is >> offset;
} }
} }
...@@ -97,8 +97,8 @@ std::pair<int, int> Attribute::getResolution() const ...@@ -97,8 +97,8 @@ std::pair<int, int> Attribute::getResolution() const
is >> w; is >> w;
if(!is.eof()) if(!is.eof())
{ {
char c; char c = is.get();
if(is.get(c) && c == 'x') if(c == 'x' && !is.eof())
is >> h; is >> h;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment