mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-28 20:14:02 +08:00
Remove url_feof check that would be triggered only after incorrectly producing
an empty packet and also av_get_packet already handles EOF now. Originally committed as revision 20140 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -247,8 +247,6 @@ static int wav_read_packet(AVFormatContext *s,
|
|||||||
AVStream *st;
|
AVStream *st;
|
||||||
WAVContext *wav = s->priv_data;
|
WAVContext *wav = s->priv_data;
|
||||||
|
|
||||||
if (url_feof(s->pb))
|
|
||||||
return AVERROR(EIO);
|
|
||||||
st = s->streams[0];
|
st = s->streams[0];
|
||||||
|
|
||||||
left = wav->data_end - url_ftell(s->pb);
|
left = wav->data_end - url_ftell(s->pb);
|
||||||
|
Reference in New Issue
Block a user