ソースを参照

spudec: use vlc_alloc helper

Thomas Guillem 7 年 前
コミット
7c32eb0e0a
1 ファイル変更1 行追加1 行削除
  1. 1 1
      modules/codec/spudec/parse.c

+ 1 - 1
modules/codec/spudec/parse.c

@@ -125,7 +125,7 @@ subpicture_t * ParsePacket( decoder_t *p_dec )
      *  one byte gaves two nibbles and may be used twice (once per field)
      * generating 4 codes.
      */
-    spu_data.p_data = malloc( sizeof(*spu_data.p_data) * 2 * 2 * p_sys->i_rle_size );
+    spu_data.p_data = vlc_alloc( p_sys->i_rle_size, sizeof(*spu_data.p_data) * 2 * 2 );
 
     /* We try to display it */
     if( ParseRLE( p_dec, &spu_data, &spu_properties ) )