]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/iss.c
Const correctness for vorbis_comment
[ffmpeg] / libavformat / iss.c
index c722f62d2bf79562f80474bc22155628a65695b8..891729a2b57c507384ced5ccd9b333cbb80696fa 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 /**
- * @file iss.c
+ * @file libavformat/iss.c
  * Funcom ISS file demuxer
  * @author Jaikrishnan Menon
  * for more information on the .iss file format, visit:
@@ -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;