diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-05-28 23:56:25 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-05-28 23:56:25 +0000 |
commit | 390b25aeda1e36df54366e1f5e821ecb0147ea54 (patch) | |
tree | 689e3a7cfbf4f33c92511ee10da0b607d21f7a2a /libavcodec/dv.c | |
parent | 12701f6e31f465377462c0fc2d5b34477c1c422b (diff) | |
download | ffmpeg-390b25aeda1e36df54366e1f5e821ecb0147ea54.tar.gz |
set avctx time_base in dv decoder
Originally committed as revision 13515 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dv.c')
-rw-r--r-- | libavcodec/dv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c index 71602f5f2c..c52387aa10 100644 --- a/libavcodec/dv.c +++ b/libavcodec/dv.c @@ -1046,6 +1046,7 @@ static int dvvideo_decode_frame(AVCodecContext *avctx, 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"); |