]> git.sesse.net Git - vlc/commitdiff
x265_encoder_headers: account for 0.9 API changes
authorRafaël Carré <funman@videolan.org>
Sat, 5 Apr 2014 09:42:56 +0000 (11:42 +0200)
committerRafaël Carré <funman@videolan.org>
Sat, 5 Apr 2014 09:48:29 +0000 (11:48 +0200)
modules/codec/x265.c

index a2abd454bc401c8695d2435e4cc160743b713430..5cb1e64767398a8374615e00d8b61e917c9d8f16 100644 (file)
@@ -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;