Mercurial > libavcodec.hg
comparison dv.c @ 6930:a19d295fe2b6 libavcodec
set avctx time_base in dv decoder
author | bcoudurier |
---|---|
date | Wed, 28 May 2008 23:56:25 +0000 |
parents | e1302edb0f69 |
children | b252326ba895 |
comparison
equal
deleted
inserted
replaced
6929:f2fc71a9c89f | 6930:a19d295fe2b6 |
---|---|
1044 | 1044 |
1045 s->picture.reference = 0; | 1045 s->picture.reference = 0; |
1046 s->picture.key_frame = 1; | 1046 s->picture.key_frame = 1; |
1047 s->picture.pict_type = FF_I_TYPE; | 1047 s->picture.pict_type = FF_I_TYPE; |
1048 avctx->pix_fmt = s->sys->pix_fmt; | 1048 avctx->pix_fmt = s->sys->pix_fmt; |
1049 avctx->time_base = (AVRational){s->sys->frame_rate_base, s->sys->frame_rate}; | |
1049 avcodec_set_dimensions(avctx, s->sys->width, s->sys->height); | 1050 avcodec_set_dimensions(avctx, s->sys->width, s->sys->height); |
1050 if(avctx->get_buffer(avctx, &s->picture) < 0) { | 1051 if(avctx->get_buffer(avctx, &s->picture) < 0) { |
1051 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); | 1052 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); |
1052 return -1; | 1053 return -1; |
1053 } | 1054 } |