From c46106d63359ff663d71910e64398035146a8f46 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 5 Dec 2015 23:53:48 +0100 Subject: player: remove redundant check Found by Coverity. --- player/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/video.c b/player/video.c index 5f0809791a..9be4f6a9a0 100644 --- a/player/video.c +++ b/player/video.c @@ -289,7 +289,7 @@ int reinit_video_chain(struct MPContext *mpctx) } #if HAVE_ENCODING - if (mpctx->encode_lavc_ctx && d_video) + if (mpctx->encode_lavc_ctx) encode_lavc_set_video_fps(mpctx->encode_lavc_ctx, d_video->fps); #endif -- cgit v1.2.3