diff iss.c @ 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 49c1d3b27727
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;