changeset 33:3eff1f2dcf71 libavformat

use av_malloc()
author bellard
date Thu, 23 Jan 2003 22:57:56 +0000
parents cd0155c9022e
children f17e285df237
files rm.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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;
     }