mirror of
https://github.com/mpv-player/mpv
synced 2025-02-01 04:31:39 +00:00
vd_lavc: mediacodec also needs special timebase love
This commit is contained in:
parent
5fe2812494
commit
83b8d3f52c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user