]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/sol.c
libmodplug: consistent use of sizeof.
[ffmpeg] / libavformat / sol.c
index 895623392c7b900a0dc68a573aa895895204f98b..1389128fa637ede72a71ad7062ebe8ad382994a7 100644 (file)
@@ -132,6 +132,8 @@ static int sol_read_packet(AVFormatContext *s,
     if (url_feof(s->pb))
         return AVERROR(EIO);
     ret= av_get_packet(s->pb, pkt, MAX_SIZE);
+    if (ret < 0)
+        return ret;
     pkt->stream_index = 0;
 
     /* note: we need to modify the packet size here to handle the last