[FFmpeg-cvslog] r16740 - trunk/libavformat/iss.c

stefang subversion
Sat Jan 24 09:20:43 CET 2009


Author: stefang
Date: Sat Jan 24 09:20:42 2009
New Revision: 16740

Log:
return an error if we can not get a full packet,
fixes hang on EOF

Modified:
   trunk/libavformat/iss.c

Modified: trunk/libavformat/iss.c
==============================================================================
--- trunk/libavformat/iss.c	Sat Jan 24 09:15:43 2009	(r16739)
+++ trunk/libavformat/iss.c	Sat Jan 24 09:20:42 2009	(r16740)
@@ -112,8 +112,8 @@ static int iss_read_packet(AVFormatConte
     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;




More information about the ffmpeg-cvslog mailing list