Commit 43e98e9f authored by reimar's avatar reimar

wav: return av_get_packet errors unchanged.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20142 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6506d6ad
...@@ -268,8 +268,8 @@ static int wav_read_packet(AVFormatContext *s, ...@@ -268,8 +268,8 @@ static int wav_read_packet(AVFormatContext *s,
} }
size = FFMIN(size, left); size = FFMIN(size, left);
ret = av_get_packet(s->pb, pkt, size); ret = av_get_packet(s->pb, pkt, size);
if (ret <= 0) if (ret < 0)
return AVERROR(EIO); return ret;
pkt->stream_index = 0; pkt->stream_index = 0;
return ret; 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