# HG changeset patch # User bellard # Date 1043362676 0 # Node ID 3eff1f2dcf71777a481dd9237bdeb20b2bad0932 # Parent cd0155c9022eeb165eabddeb5538c11c61a524f2 use av_malloc() diff -r cd0155c9022e -r 3eff1f2dcf71 rm.c --- 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; }