wav: return av_get_packet errors unchanged.

Originally committed as revision 20142 to svn://svn.ffmpeg.org/ffmpeg/trunk
release/0.6
Reimar Döffinger 16 years ago
parent 4bd7cb8be2
commit e581b6288f
  1. 4
      libavformat/wav.c

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

Loading…
Cancel
Save