From 39f853afe92b641aeb56b0628e3f9d3531c32d51 Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Thu, 23 Jan 2003 22:57:56 +0000 Subject: [PATCH] use av_malloc() Originally committed as revision 1502 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/rm.c b/libavformat/rm.c index e3592fb2b6..e537aed151 100644 --- a/libavformat/rm.c +++ b/libavformat/rm.c @@ -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 ... - 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; }