Mercurial > libavformat.hg
comparison flvdec.c @ 4811:ef366aa6b7f2 libavformat
Do not fail on zero packets.
author | michael |
---|---|
date | Fri, 03 Apr 2009 15:32:31 +0000 |
parents | 063522a177cc |
children | 0793a33d775f |
comparison
equal
deleted
inserted
replaced
4810:b09008e45b45 | 4811:ef366aa6b7f2 |
---|---|
442 /* skip empty data packets */ | 442 /* skip empty data packets */ |
443 if (!size) | 443 if (!size) |
444 return AVERROR(EAGAIN); | 444 return AVERROR(EAGAIN); |
445 | 445 |
446 ret= av_get_packet(s->pb, pkt, size); | 446 ret= av_get_packet(s->pb, pkt, size); |
447 if (ret <= 0) { | 447 if (ret < 0) { |
448 return AVERROR(EIO); | 448 return AVERROR(EIO); |
449 } | 449 } |
450 /* note: we need to modify the packet size here to handle the last | 450 /* note: we need to modify the packet size here to handle the last |
451 packet */ | 451 packet */ |
452 pkt->size = ret; | 452 pkt->size = ret; |