Martin Storsjö <[email protected]> added the comment: Where did you get that version of tcp.c? Did you write it yourself? Then why do you ask about it here? The latest version in git.ffmpeg.org looks like this: http://git.ffmpeg.org/? p=ffmpeg.git;a=blob;f=libavformat/tcp.c;h=29eb60abe9e45be1d0fa0f8a0ed8e01e48 88c752;hb=41cdc1ff1e86f1bfb935e1bde53ccc9c645ff71e#l142
That version is incorrect, since it doesn't return until all size has been read, while normal protocols read functions should return as soon as some data has been read. (The caller can use url_read_complete() instead of url_read() if he wants to get exactly that much data, not only "anything up to this amount".) ________________________________________________ FFmpeg issue tracker <[email protected]> <https://roundup.ffmpeg.org/issue2612> ________________________________________________
