Mercurial > libavcodec.hg
comparison dv.c @ 8014:07d8986fbea7 libavcodec
replacing frame_rate and frame_rate_base with an AVRational time_base
author | romansh |
---|---|
date | Tue, 07 Oct 2008 16:59:18 +0000 |
parents | 3ec8f8660152 |
children | 4eac1822bc65 |
comparison
equal
deleted
inserted
replaced
8013:0eeb93cedecb | 8014:07d8986fbea7 |
---|---|
1046 | 1046 |
1047 s->picture.reference = 0; | 1047 s->picture.reference = 0; |
1048 s->picture.key_frame = 1; | 1048 s->picture.key_frame = 1; |
1049 s->picture.pict_type = FF_I_TYPE; | 1049 s->picture.pict_type = FF_I_TYPE; |
1050 avctx->pix_fmt = s->sys->pix_fmt; | 1050 avctx->pix_fmt = s->sys->pix_fmt; |
1051 avctx->time_base = (AVRational){s->sys->frame_rate_base, s->sys->frame_rate}; | 1051 avctx->time_base = s->sys->time_base; |
1052 avcodec_set_dimensions(avctx, s->sys->width, s->sys->height); | 1052 avcodec_set_dimensions(avctx, s->sys->width, s->sys->height); |
1053 if(avctx->get_buffer(avctx, &s->picture) < 0) { | 1053 if(avctx->get_buffer(avctx, &s->picture) < 0) { |
1054 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); | 1054 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); |
1055 return -1; | 1055 return -1; |
1056 } | 1056 } |