From 83b8d3f52c22f991227d824ddffd3b054d773d3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ekstr=C3=B6m?= Date: Fri, 26 Feb 2016 00:45:06 +0200 Subject: vd_lavc: mediacodec also needs special timebase love --- video/decode/vd_lavc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 9559e0800f..167c1e55f2 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -366,7 +366,7 @@ static void init_avctx(struct dec_video *vd, const char *decoder, ctx->hwdec_info = vd->hwdec_info; ctx->codec_timebase = (AVRational){0}; - if (strstr(decoder, "_mmal")) + if (strstr(decoder, "_mmal") || strstr(decoder, "_mediacodec")) ctx->codec_timebase = (AVRational){1, 1000000}; ctx->pix_fmt = AV_PIX_FMT_NONE; -- cgit v1.2.3