]> git.sesse.net Git - vlc/blobdiff - modules/codec/dirac.c
x264: use x264_picture_init from X264_BUILD >= 98
[vlc] / modules / codec / dirac.c
index 67da03a531e061f6aff6346fa18c2a2824c8eaaf..b3d61b8f4b1caed047cd48af59e278b70c8788a8 100644 (file)
@@ -781,6 +781,7 @@ static block_t *Encode( encoder_t *p_enc, picture_t *p_pic )
     int i_plane, i_line, i_width, i_src_stride;
     uint8_t *p_dst;
 
+    if( !p_pic ) return NULL;
     /* we only know if the sequence is interlaced when the first
      * picture arrives, so final setup is done here */
     /* XXX todo, detect change of interlace */