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
is >> length;
if(!is.eof())
{
char c;
if(is.get(c) && c == '@')
char c = is.get();
if(c == '@' && !is.eof())
is >> offset;
}
}
......@@ -97,8 +97,8 @@ std::pair<int, int> Attribute::getResolution() const
is >> w;
if(!is.eof())
{
char c;
if(is.get(c) && c == 'x')
char c = is.get();
if(c == 'x' && !is.eof())
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