mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-29 07:06:59 +08:00
vd_lavc: always force milliseconds for MMAL
This libavcodec wrapper should rescale the API timestamps to whatever it internally needs, but it doesn't yet. So restore this code.
This commit is contained in:
@@ -450,6 +450,11 @@ static void init_avctx(struct dec_video *vd, const char *decoder,
|
||||
return;
|
||||
|
||||
ctx->codec_timebase = mp_get_codec_timebase(vd->codec);
|
||||
|
||||
// This decoder does not read pkt_timebase correctly yet.
|
||||
if (strstr(decoder, "_mmal"))
|
||||
ctx->codec_timebase = (AVRational){1, 1000000};
|
||||
|
||||
ctx->pix_fmt = AV_PIX_FMT_NONE;
|
||||
ctx->hwdec = hwdec;
|
||||
ctx->hwdec_fmt = 0;
|
||||
|
||||
Reference in New Issue
Block a user