diff options
author | Jan Ekström <jeebjp@gmail.com> | 2016-02-26 00:45:06 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-03-25 21:35:57 +0100 |
commit | 83b8d3f52c22f991227d824ddffd3b054d773d3a (patch) | |
tree | ca97f90674371dac10b60016bb82bb7203d1138a /video/decode/vd_lavc.c | |
parent | 5fe2812494f7743f4d662b1f7983d4afa898243f (diff) | |
download | mpv-83b8d3f52c22f991227d824ddffd3b054d773d3a.tar.bz2 mpv-83b8d3f52c22f991227d824ddffd3b054d773d3a.tar.xz |
vd_lavc: mediacodec also needs special timebase love
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r-- | video/decode/vd_lavc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |