use av_malloc()
authorFabrice Bellard <fabrice@bellard.org>
Thu, 23 Jan 2003 22:57:56 +0000 (22:57 +0000)
committerFabrice Bellard <fabrice@bellard.org>
Thu, 23 Jan 2003 22:57:56 +0000 (22:57 +0000)
Originally committed as revision 1502 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/rm.c

index e3592fb2b64fdcdf0e6b3d300675e252d32cadcb..e537aed151b4e8a57d7e6a42e721395ada1cbcf5 100644 (file)
@@ -703,7 +703,8 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt)
         pic_num= get_byte(pb);
 
         //XXX/FIXME/HACK, demuxer should be fixed to send complete frames ...
         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;
     }
         st->codec.slice_count= full_frame; 
         st->codec.slice_offset[0]= 0;
     }