]> git.sesse.net Git - vlc/blobdiff - modules/codec/quicktime.c
V4L2: make loudness, horizontal flip and vertical flip booleans
[vlc] / modules / codec / quicktime.c
index 0904d4d0034c2953921369797668609112a90c9c..55f9bf076355117a3ef3d841086f1dcf65a65533 100644 (file)
@@ -528,7 +528,7 @@ static aout_buffer_t *DecodeAudio( decoder_t *p_dec, block_t **pp_block )
 {
     decoder_sys_t *p_sys = p_dec->p_sys;
 
-    block_t     *p_block = *pp_block;
+    block_t     *p_block;
     int         i_error;
 
 #ifdef LOADER
@@ -547,10 +547,11 @@ static aout_buffer_t *DecodeAudio( decoder_t *p_dec, block_t **pp_block )
     }
 #endif
 
-    if( p_block == NULL )
+    if( pp_block == NULL || *pp_block == NULL )
     {
         return NULL;
     }
+    p_block = *pp_block;
 
     if( p_sys->i_out_frames > 0 && p_sys->i_out >= p_sys->i_out_frames )
     {
@@ -912,7 +913,7 @@ static picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
         p_sys->i_late = 0;
     }
 #ifndef NDEBUG
-    msg_Dbg( p_dec, "bufsize: %d", (int)p_block->i_buffer);
+    msg_Dbg( p_dec, "bufsize: %zu", p_block->i_buffer);
 #endif
 
     if( p_sys->i_late > 10 )