diff --git a/libmpcodecs/vf_lavc.c b/libmpcodecs/vf_lavc.c index 84b9aa47b8..97f68e32b0 100644 --- a/libmpcodecs/vf_lavc.c +++ b/libmpcodecs/vf_lavc.c @@ -62,7 +62,7 @@ static int config(struct vf_instance_s* vf, lavc_venc_context.height = height; #if LIBAVCODEC_BUILD >= 4754 - if(!lavc_venc_context.time_base.num){ + if(!lavc_venc_context.time_base.num || !lavc_venc_context.time_base.den){ #else if(!lavc_venc_context.frame_rate){ #endif