]> git.sesse.net Git - ffmpeg/commit
http: Check for AVERROR_EOF in the check for premature end
authorMartin Storsjö <martin@martin.st>
Thu, 12 Nov 2020 22:06:30 +0000 (00:06 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 20 Nov 2020 08:37:24 +0000 (10:37 +0200)
commit104e5233f03f1ed3aa34b256cd2b9023a9076ffb
treeec726fae68d38278dbed1867fc47ab4c223d9102
parentbf19833ae26b054a111de79b5ab1681c00cd8d0a
http: Check for AVERROR_EOF in the check for premature end

When the check was added (in 3668701f9600, in 2015), some IO
functions returned 0 on EOF (in particular, the TCP protocol
did, but the TLS protocol returned AVERROR_EOF). Since
0e1f771d2200d in 2017, the TCP protocol also returns AVERROR_EOF
instead of 0, making the check for premature end never have the
intended effect.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/http.c