[vlc-devel] [PATCH] x265: fix compilation

Zhao Zhili wantlamy at gmail.com
Sat Jun 18 16:41:37 CEST 2016


>From b71d5d0426a20450aba02d54c21ca294be48e33c Mon Sep 17 00:00:00 2001
From: Zhao Zhili <wantlamy at gmail.com>
Date: Sat, 18 Jun 2016 22:36:59 +0800
Subject: [PATCH] x265: fix compilation

---
 modules/codec/x265.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/x265.c b/modules/codec/x265.c
index 2fac637..c35cf4c 100644
--- a/modules/codec/x265.c
+++ b/modules/codec/x265.c
@@ -141,7 +141,7 @@ static int  Open (vlc_object_t *p_this)
     encoder_t     *p_enc = (encoder_t *)p_this;
     encoder_sys_t *p_sys;

-    if (p_enc->fmt_out.i_codec != VLC_CODEC_HEVC && !p_enc->b_force)
+    if (p_enc->fmt_out.i_codec != VLC_CODEC_HEVC && !p_enc->obj.force)
         return VLC_EGENERIC;

     p_enc->fmt_out.i_cat = VIDEO_ES;
-- 
2.7.4


More information about the vlc-devel mailing list