Mercurial > libavformat.hg
changeset 4283:7795d5d87484 libavformat
return an error if we can not get a full packet,
fixes hang on EOF
author | stefang |
---|---|
date | Sat, 24 Jan 2009 08:20:42 +0000 |
parents | ef4f40b555b7 |
children | 40c9bef5b4e2 |
files | iss.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/iss.c Sat Jan 24 08:06:43 2009 +0000 +++ b/iss.c Sat Jan 24 08:20:42 2009 +0000 @@ -112,8 +112,8 @@ IssDemuxContext *iss = s->priv_data; int ret = av_get_packet(s->pb, pkt, iss->packet_size); - if(ret < 0) - return ret; + if(ret != iss->packet_size) + return AVERROR(EIO); pkt->stream_index = 0; pkt->pts = url_ftell(s->pb) - iss->sample_start_pos;