0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

vd_lavc: mediacodec also needs special timebase love

This commit is contained in:
Jan Ekström 2016-02-26 00:45:06 +02:00 committed by wm4
parent 5fe2812494
commit 83b8d3f52c

View File

@ -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;