Commit 7047789a authored by stefang's avatar stefang

return an error if we can not get a full packet,

fixes hang on EOF


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16740 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 598ea31c
......@@ -112,8 +112,8 @@ static int iss_read_packet(AVFormatContext *s, AVPacket *pkt)
IssDemuxContext *iss = s->priv_data;
int ret = av_get_packet(s->pb, pkt, iss->packet_size);
if(ret < 0)
return ret;
if(ret != iss->packet_size)
return AVERROR(EIO);
pkt->stream_index = 0;
pkt->pts = url_ftell(s->pb) - iss->sample_start_pos;
......
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