Commit e581b628 authored by Reimar Döffinger's avatar Reimar Döffinger

wav: return av_get_packet errors unchanged.

Originally committed as revision 20142 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 4bd7cb8b
......@@ -268,8 +268,8 @@ static int wav_read_packet(AVFormatContext *s,
}
size = FFMIN(size, left);
ret = av_get_packet(s->pb, pkt, size);
if (ret <= 0)
return AVERROR(EIO);
if (ret < 0)
return ret;
pkt->stream_index = 0;
return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment