Browse Source

libmodplug: handle EOF correctly.

tags/n0.9
Clément Bœsch 13 years ago
parent
commit
d7366d918f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/libmodplug.c

+ 1
- 1
libavformat/libmodplug.c View File

@@ -74,7 +74,7 @@ static int modplug_read_packet(AVFormatContext *s, AVPacket *pkt)
pkt->size = ModPlug_Read(modplug->f, pkt->data, 512);
if (pkt->size <= 0) {
av_free_packet(pkt);
return AVERROR(EIO);
return pkt->size == 0 ? AVERROR_EOF : AVERROR(EIO);
}
return 0;
}


Loading…
Cancel
Save