aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2010-01-30 09:47:57 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2010-01-30 09:47:57 +0000
commitadb5496146c9fa6b7a8c879c27e8e175fa077a4f (patch)
treecf1690a3ea250abd3c865bdfb7ce6d49a093b6c1
parentb381a823cd97fb37f95706e66a7eb8b025243b3c (diff)
downloadffmpeg-adb5496146c9fa6b7a8c879c27e8e175fa077a4f.tar.gz
another 10l: forgot to change parent condition as well
Originally committed as revision 21535 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/rtmpproto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 03fd90aa8e..74442c8917 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -662,7 +662,7 @@ static int get_packet(URLContext *s, int for_header)
for (;;) {
RTMPPacket 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) {
return AVERROR(EAGAIN);
} else {