Mercurial > libavcodec.hg
changeset 6930:a19d295fe2b6 libavcodec
set avctx time_base in dv decoder
author | bcoudurier |
---|---|
date | Wed, 28 May 2008 23:56:25 +0000 |
parents | f2fc71a9c89f |
children | 8decc970f9c8 |
files | dv.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dv.c Wed May 28 22:36:08 2008 +0000 +++ b/dv.c Wed May 28 23:56:25 2008 +0000 @@ -1046,6 +1046,7 @@ s->picture.key_frame = 1; s->picture.pict_type = FF_I_TYPE; avctx->pix_fmt = s->sys->pix_fmt; + avctx->time_base = (AVRational){s->sys->frame_rate_base, s->sys->frame_rate}; avcodec_set_dimensions(avctx, s->sys->width, s->sys->height); if(avctx->get_buffer(avctx, &s->picture) < 0) { av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");