Commit 854c816c authored by kostya's avatar kostya

10l trocadero: now return value of ff_rtmp_packet_read() has different meaning

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21534 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 65e2080a
...@@ -663,7 +663,7 @@ static int get_packet(URLContext *s, int for_header) ...@@ -663,7 +663,7 @@ static int get_packet(URLContext *s, int for_header)
RTMPPacket rpkt; RTMPPacket rpkt;
if ((ret = ff_rtmp_packet_read(rt->stream, &rpkt, if ((ret = ff_rtmp_packet_read(rt->stream, &rpkt,
rt->chunk_size, rt->prev_pkt[0])) != 0) { rt->chunk_size, rt->prev_pkt[0])) != 0) {
if (ret > 0) { if (ret == 0) {
return AVERROR(EAGAIN); return AVERROR(EAGAIN);
} else { } else {
return AVERROR(EIO); return AVERROR(EIO);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment