Mercurial > libavformat.hg
diff flvdec.c @ 376:20f644245408 libavformat
flv fixes
author | michael |
---|---|
date | Tue, 09 Mar 2004 20:14:34 +0000 |
parents | e9fe23b3007f |
children | abd83fc30f0e |
line wrap: on
line diff
--- a/flvdec.c Mon Mar 08 02:38:43 2004 +0000 +++ b/flvdec.c Tue Mar 09 20:14:34 2004 +0000 @@ -57,6 +57,8 @@ return AVERROR_NOMEM; st->codec.codec_type = CODEC_TYPE_VIDEO; st->codec.codec_id = CODEC_ID_FLV1; + st->codec.frame_rate= ap->frame_rate; + st->codec.frame_rate_base= ap->frame_rate_base; } if ((flags & 4)) { @@ -83,6 +85,7 @@ type = get_byte(&s->pb); size = get_be24(&s->pb); pts = get_be24(&s->pb); +// av_log(s, AV_LOG_DEBUG, "type:%d, size:%d, pts:%d\n", type, size, pts); if (url_feof(&s->pb)) return -EIO; url_fskip(&s->pb, 4); /* reserved */