Mercurial > libavformat.hg
comparison flvdec.c @ 2756:8258fb5a6aa0 libavformat
Honor the 8bit extension (now 32bit instaed 24bit) of the pts field introduced in FLV specification v9.
author | alex |
---|---|
date | Fri, 16 Nov 2007 00:09:34 +0000 |
parents | d320b2990d7e |
children | d52c718e83f9 |
comparison
equal
deleted
inserted
replaced
2755:bb9c77d499dd | 2756:8258fb5a6aa0 |
---|---|
273 pos = url_ftell(&s->pb); | 273 pos = url_ftell(&s->pb); |
274 url_fskip(&s->pb, 4); /* size of previous packet */ | 274 url_fskip(&s->pb, 4); /* size of previous packet */ |
275 type = get_byte(&s->pb); | 275 type = get_byte(&s->pb); |
276 size = get_be24(&s->pb); | 276 size = get_be24(&s->pb); |
277 pts = get_be24(&s->pb); | 277 pts = get_be24(&s->pb); |
278 pts |= get_byte(&s->pb) << 24; | |
278 // av_log(s, AV_LOG_DEBUG, "type:%d, size:%d, pts:%d\n", type, size, pts); | 279 // av_log(s, AV_LOG_DEBUG, "type:%d, size:%d, pts:%d\n", type, size, pts); |
279 if (url_feof(&s->pb)) | 280 if (url_feof(&s->pb)) |
280 return AVERROR(EIO); | 281 return AVERROR(EIO); |
281 url_fskip(&s->pb, 4); /* reserved */ | 282 url_fskip(&s->pb, 3); /* stream id, always 0 */ |
282 flags = 0; | 283 flags = 0; |
283 | 284 |
284 if(size == 0) | 285 if(size == 0) |
285 continue; | 286 continue; |
286 | 287 |