aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2003-01-23 22:57:56 +0000
committerFabrice Bellard <fabrice@bellard.org>2003-01-23 22:57:56 +0000
commit39f853afe92b641aeb56b0628e3f9d3531c32d51 (patch)
tree24d75ddde45e8bc994ef0a287bc3a4b864c1be5a
parent98486a6bc01288a0ac46ae8d54940a994972b90e (diff)
downloadffmpeg-39f853afe92b641aeb56b0628e3f9d3531c32d51.tar.gz
use av_malloc()
Originally committed as revision 1502 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/rm.c3
1 files changed, 2 insertions, 1 deletions
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;
}