[FFmpeg-trac] #3127(avformat:new): Video stream publishing via RTMPT
FFmpeg
trac at avcodec.org
Fri Nov 15 18:20:18 CET 2013
#3127: Video stream publishing via RTMPT
------------------------------------+------------------------------------
Reporter: goodvinj | Owner:
Type: defect | Status: new
Priority: normal | Component: avformat
Version: git-master | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Comment (by goodvinj):
I've found that "ffurl_read" can return 0 by the specification:
{{{
/**
* Read up to size bytes from the resource accessed by h, and store
* the read bytes in buf.
*
* @return The number of bytes actually read, or a negative value
* corresponding to an AVERROR code in case of error. A value of zero
* indicates that it is not possible to read more from the accessed
* resource (except if the value of the size argument is also zero).
*/
int ffurl_read(URLContext *h, unsigned char *buf, int size);
}}}
So the right patch must check "ffurl_read" result on 0, and the old patch
is invalid.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/3127#comment:7>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list