Browse Source

ape: return error if seeking to the current packet fails in ape_read_packet()

tags/n0.11
Justin Ruggles 14 years ago
parent
commit
1bc035bc03
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/ape.c

+ 2
- 1
libavformat/ape.c View File

@@ -361,7 +361,8 @@ static int ape_read_packet(AVFormatContext * s, AVPacket * pkt)
if (ape->currentframe > ape->totalframes)
return AVERROR(EIO);

avio_seek (s->pb, ape->frames[ape->currentframe].pos, SEEK_SET);
if (avio_seek(s->pb, ape->frames[ape->currentframe].pos, SEEK_SET) < 0)
return AVERROR(EIO);

/* Calculate how many blocks there are in this frame */
if (ape->currentframe == (ape->totalframes - 1))


Loading…
Cancel
Save