[vlc-commits] x265_encoder_headers: account for 0.9 API changes

Rafaël Carré git at videolan.org
Sat Apr 5 11:48:42 CEST 2014


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sat Apr  5 11:42:56 2014 +0200| [4867c2a6fda4d3a39e35691f8e162c76c12d0167] | committer: Rafaël Carré

x265_encoder_headers: account for 0.9 API changes

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4867c2a6fda4d3a39e35691f8e162c76c12d0167
---

 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 a2abd45..5cb1e64 100644
--- a/modules/codec/x265.c
+++ b/modules/codec/x265.c
@@ -203,7 +203,7 @@ static int  Open (vlc_object_t *p_this)
 
     x265_nal *nal;
     uint32_t i_nal;
-    if (x265_encoder_headers(p_sys->h, &nal, &i_nal)) {
+    if (x265_encoder_headers(p_sys->h, &nal, &i_nal) < 0) {
         msg_Err(p_enc, "cannot get x265 headers");
         Close(VLC_OBJECT(p_enc));
         return VLC_EGENERIC;



More information about the vlc-commits mailing list