[FFmpeg-devel] [PATCH]libavformat/http: fix http error eof

raymond zheng raymondzheng1412 at gmail.com
Thu May 18 10:19:19 EEST 2017

    I find an issue about http. I don't use chunked, so s->chunksize will
be set as UINT64_MAX when http open, but because of "if (s->chunksize > 0)
s->chunksize -= len;" then chunksize will not be UINT64_MAX.

    If ffurl_read return to 0, s->off < target_end, http_buf_read will
return to 0, then this will lead to eof, so this is incorrect, and
http_buf_read should return to AVERROR(EIO).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libavformat-http-return-EIO-when-ffurl_read-return-0.patch
Type: application/octet-stream
Size: 824 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170518/0210c824/attachment.obj>

More information about the ffmpeg-devel mailing list