comparison au.c @ 5246:dc7045701f0e libavformat

au demuxer: pass av_get_packet error on unchanged instead of converting to AVERROR(EIO).
author reimar
date Thu, 01 Oct 2009 17:08:33 +0000
parents 33a244b7ca65
children 6a23d76cc72c
comparison
equal deleted inserted replaced
5245:30c093f11b4e 5246:dc7045701f0e
166 166
167 if (url_feof(s->pb)) 167 if (url_feof(s->pb))
168 return AVERROR(EIO); 168 return AVERROR(EIO);
169 ret= av_get_packet(s->pb, pkt, MAX_SIZE); 169 ret= av_get_packet(s->pb, pkt, MAX_SIZE);
170 if (ret < 0) 170 if (ret < 0)
171 return AVERROR(EIO); 171 return ret;
172 pkt->stream_index = 0; 172 pkt->stream_index = 0;
173 173
174 /* note: we need to modify the packet size here to handle the last 174 /* note: we need to modify the packet size here to handle the last
175 packet */ 175 packet */
176 pkt->size = ret; 176 pkt->size = ret;