Mercurial > libavformat.hg
comparison flvdec.c @ 2274:b21c2af60bc9 libavformat
Replace all occurrences of AVERROR_IO with AVERROR(EIO).
author | takis |
---|---|
date | Thu, 19 Jul 2007 15:23:32 +0000 |
parents | 7eb456c4ed8a |
children | 74c1aa100084 |
comparison
equal
deleted
inserted
replaced
2273:7eb456c4ed8a | 2274:b21c2af60bc9 |
---|---|
268 type = get_byte(&s->pb); | 268 type = get_byte(&s->pb); |
269 size = get_be24(&s->pb); | 269 size = get_be24(&s->pb); |
270 pts = get_be24(&s->pb); | 270 pts = get_be24(&s->pb); |
271 // av_log(s, AV_LOG_DEBUG, "type:%d, size:%d, pts:%d\n", type, size, pts); | 271 // av_log(s, AV_LOG_DEBUG, "type:%d, size:%d, pts:%d\n", type, size, pts); |
272 if (url_feof(&s->pb)) | 272 if (url_feof(&s->pb)) |
273 return AVERROR_IO; | 273 return AVERROR(EIO); |
274 url_fskip(&s->pb, 4); /* reserved */ | 274 url_fskip(&s->pb, 4); /* reserved */ |
275 flags = 0; | 275 flags = 0; |
276 | 276 |
277 if(size == 0) | 277 if(size == 0) |
278 continue; | 278 continue; |
346 size -= flv_set_video_codec(s, st, flags & FLV_VIDEO_CODECID_MASK); | 346 size -= flv_set_video_codec(s, st, flags & FLV_VIDEO_CODECID_MASK); |
347 } | 347 } |
348 | 348 |
349 ret= av_get_packet(&s->pb, pkt, size - 1); | 349 ret= av_get_packet(&s->pb, pkt, size - 1); |
350 if (ret <= 0) { | 350 if (ret <= 0) { |
351 return AVERROR_IO; | 351 return AVERROR(EIO); |
352 } | 352 } |
353 /* note: we need to modify the packet size here to handle the last | 353 /* note: we need to modify the packet size here to handle the last |
354 packet */ | 354 packet */ |
355 pkt->size = ret; | 355 pkt->size = ret; |
356 pkt->pts = pts; | 356 pkt->pts = pts; |