[FFmpeg-devel] Patch for the ticket #3127 (Video stream publishing via RTMPT)

Valeriy Argunov hzdbyte at gmail.com
Fri Nov 15 19:03:14 CET 2013


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.
Here is a new patch.


2013/11/14 Valeriy Argunov <hzdbyte at gmail.com>

> Here is a patch that partially fixes https://trac.ffmpeg.org/ticket/3127
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Partial-fix-for-the-ticket-3127-second-try.patch
Type: application/octet-stream
Size: 1237 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131116/59d9b4fb/attachment.obj>


More information about the ffmpeg-devel mailing list