Mercurial > libavcodec.hg
diff h261.c @ 2637:ef44d24680d1 libavcodec
switch to native time bases
author | michael |
---|---|
date | Sat, 30 Apr 2005 21:43:59 +0000 |
parents | 67171616ead6 |
children | 0a8c847ad5e7 |
line wrap: on
line diff
--- a/h261.c Mon Apr 25 18:41:38 2005 +0000 +++ b/h261.c Sat Apr 30 21:43:59 2005 +0000 @@ -103,8 +103,8 @@ put_bits(&s->pb, 20, 0x10); /* PSC */ - temp_ref= s->picture_number * (int64_t)30000 * s->avctx->frame_rate_base / - (1001 * (int64_t)s->avctx->frame_rate); + temp_ref= s->picture_number * (int64_t)30000 * s->avctx->time_base.num / + (1001 * (int64_t)s->avctx->time_base.den); //FIXME maybe this should use a timestamp put_bits(&s->pb, 5, temp_ref & 0x1f); /* TemporalReference */ put_bits(&s->pb, 1, 0); /* split screen off */