]> git.sesse.net Git - vlc/blobdiff - modules/codec/theora.c
Revert the DVD LPCM header description changes; will be added back later.
[vlc] / modules / codec / theora.c
index 46071ebed79607593822e31895a4ba600a9bc2b0..07fb81045bed8c67e8e4a9a12b1be95c3abce412 100644 (file)
@@ -676,6 +676,7 @@ static block_t *Encode( encoder_t *p_enc, picture_t *p_pict )
     yuv_buffer yuv;
     int i;
 
+    if( !p_pict ) return NULL;
     /* Sanity check */
     if( p_pict->p[0].i_pitch < (int)p_sys->i_width ||
         p_pict->p[0].i_lines < (int)p_sys->i_height )