diff options
author | wm4 <wm4@nowhere> | 2016-08-23 12:07:46 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-08-23 12:07:46 +0200 |
commit | c218d9e960e906e4d6dab9d2c4438022b91c69bc (patch) | |
tree | 098ac7495fbba8cfdb61564a33d71de7c9ddfc7e /video/decode/vd_lavc.c | |
parent | a47d849df71d3c681d949cc82f334deec492816b (diff) | |
download | mpv-c218d9e960e906e4d6dab9d2c4438022b91c69bc.tar.bz2 mpv-c218d9e960e906e4d6dab9d2c4438022b91c69bc.tar.xz |
vd_lavc: minor simplification
The timebase is now always valid.
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r-- | video/decode/vd_lavc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index a4f4e5e2e5..8cc5d4eca4 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -460,9 +460,7 @@ static void init_avctx(struct dec_video *vd, const char *decoder, avctx->opaque = vd; avctx->codec_type = AVMEDIA_TYPE_VIDEO; avctx->codec_id = lavc_codec->id; - - if (ctx->codec_timebase.num) - avctx->time_base = ctx->codec_timebase; + avctx->time_base = ctx->codec_timebase; avctx->refcounted_frames = 1; ctx->pic = av_frame_alloc(); |