diff options
author | Stefan Gehrer <stefan.gehrer@gmx.de> | 2009-01-24 08:20:42 +0000 |
---|---|---|
committer | Stefan Gehrer <stefan.gehrer@gmx.de> | 2009-01-24 08:20:42 +0000 |
commit | 1ac63c2a9b6a725c4b3e4c4bac67a3ed9c5ba89c (patch) | |
tree | 5855be9ce1e717288bfa7614b0dfa1e313d23a05 | |
parent | e0df9e44257bc608b502097a4edf019e39f425de (diff) | |
download | ffmpeg-1ac63c2a9b6a725c4b3e4c4bac67a3ed9c5ba89c.tar.gz |
return an error if we can not get a full packet,
fixes hang on EOF
Originally committed as revision 16740 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/iss.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/iss.c b/libavformat/iss.c index c722f62d2b..0d24c96ce3 100644 --- a/libavformat/iss.c +++ b/libavformat/iss.c @@ -112,8 +112,8 @@ static int iss_read_packet(AVFormatContext *s, AVPacket *pkt) 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; |