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:
wm4
2016-08-29 13:15:44 +02:00
parent 0110b738d5
commit edbb8f6286
+5
View File
@@ -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;