1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

wav: return av_get_packet errors unchanged.

Originally committed as revision 20142 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Reimar Döffinger 2009-10-02 07:22:44 +00:00
parent 4bd7cb8be2
commit e581b6288f

View File

@ -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;