Browse Source

dv: do not set codec timebase

It is not supposed to be set from outside of libavcodec.
Set average framerate instead.
tags/n2.3
Anton Khirnov 12 years ago
parent
commit
79f2c426fd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/dv.c

+ 1
- 1
libavformat/dv.c View File

@@ -277,7 +277,7 @@ static int dv_extract_video_info(DVDemuxContext *c, uint8_t *frame)


avpriv_set_pts_info(c->vst, 64, c->sys->time_base.num, avpriv_set_pts_info(c->vst, 64, c->sys->time_base.num,
c->sys->time_base.den); c->sys->time_base.den);
avctx->time_base = c->sys->time_base;
c->vst->avg_frame_rate = av_inv_q(c->vst->time_base);
if (!avctx->width) { if (!avctx->width) {
avctx->width = c->sys->width; avctx->width = c->sys->width;
avctx->height = c->sys->height; avctx->height = c->sys->height;


Loading…
Cancel
Save