Mercurial > libavformat.hg
comparison flvdec.c @ 4542:241a66d33f49 libavformat
FLV demuxer: return AVERROR_EOF upon detection of end of file.
author | pross |
---|---|
date | Thu, 19 Feb 2009 12:19:55 +0000 |
parents | 8ec95cf6deb9 |
children | ee5d7f52e4bc |
comparison
equal
deleted
inserted
replaced
4541:a65e3b37f87e | 4542:241a66d33f49 |
---|---|
318 size = get_be24(s->pb); | 318 size = get_be24(s->pb); |
319 dts = get_be24(s->pb); | 319 dts = get_be24(s->pb); |
320 dts |= get_byte(s->pb) << 24; | 320 dts |= get_byte(s->pb) << 24; |
321 // av_log(s, AV_LOG_DEBUG, "type:%d, size:%d, dts:%d\n", type, size, dts); | 321 // av_log(s, AV_LOG_DEBUG, "type:%d, size:%d, dts:%d\n", type, size, dts); |
322 if (url_feof(s->pb)) | 322 if (url_feof(s->pb)) |
323 return AVERROR(EIO); | 323 return AVERROR_EOF; |
324 url_fskip(s->pb, 3); /* stream id, always 0 */ | 324 url_fskip(s->pb, 3); /* stream id, always 0 */ |
325 flags = 0; | 325 flags = 0; |
326 | 326 |
327 if(size == 0) | 327 if(size == 0) |
328 continue; | 328 continue; |