diff options
Diffstat (limited to 'libavformat/wav.c')
-rw-r--r-- | libavformat/wav.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/wav.c b/libavformat/wav.c index 1d18098339..474799a519 100644 --- a/libavformat/wav.c +++ b/libavformat/wav.c @@ -311,7 +311,7 @@ static int wav_read_packet(AVFormatContext *s, AVStream *st; if (url_feof(&s->pb)) - return -EIO; + return AVERROR_IO; st = s->streams[0]; size = MAX_SIZE; @@ -321,7 +321,7 @@ static int wav_read_packet(AVFormatContext *s, size = (size / st->codec.block_align) * st->codec.block_align; } if (av_new_packet(pkt, size)) - return -EIO; + return AVERROR_IO; pkt->stream_index = 0; ret = get_buffer(&s->pb, pkt->data, pkt->size); |