diff rm.c @ 33:3eff1f2dcf71 libavformat

use av_malloc()
author bellard
date Thu, 23 Jan 2003 22:57:56 +0000
parents b167760cd0aa
children a58a8a53eb46
line wrap: on
line diff
--- a/rm.c	Thu Jan 23 22:00:57 2003 +0000
+++ b/rm.c	Thu Jan 23 22:57:56 2003 +0000
@@ -703,7 +703,8 @@
         pic_num= get_byte(pb);
 
         //XXX/FIXME/HACK, demuxer should be fixed to send complete frames ...
-        if(st->codec.slice_offset==NULL) st->codec.slice_offset= (int*)malloc(sizeof(int));
+        if(st->codec.slice_offset==NULL) 
+            st->codec.slice_offset= (int*)av_malloc(sizeof(int));
         st->codec.slice_count= full_frame; 
         st->codec.slice_offset[0]= 0;
     }