picture_pool: factorize the code to clone a picture for Wait/Get
[vlc.git] / modules / access / dcp / dcpdecrypt.cpp
index e7dcaa9..0531b3d 100644 (file)
@@ -327,7 +327,7 @@ int AESKey::decryptRSA( string s_cipher_text_b64 )
             if( this->extractInfo( ps_plain_text, false ) )
                 goto end;
             break;
-        case -1:
+        case static_cast<size_t>( -1 ):
             msg_Err( this->p_demux, "could not decrypt" );
             goto end;
         default:
@@ -523,7 +523,7 @@ error:
 int RSAKey::readDER( unsigned char const* ps_data_der, size_t length )
 {
     struct tag_info tag_inf;
-    gcry_mpi_t key_params[8];
+    gcry_mpi_t key_params[8] = { NULL };
     gcry_error_t err;
 
     /* parse the ASN1 structure */