Commit 39f853af authored by Fabrice Bellard's avatar Fabrice Bellard

use av_malloc()

Originally committed as revision 1502 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 98486a6b
...@@ -703,7 +703,8 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -703,7 +703,8 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt)
pic_num= get_byte(pb); pic_num= get_byte(pb);
//XXX/FIXME/HACK, demuxer should be fixed to send complete frames ... //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_count= full_frame;
st->codec.slice_offset[0]= 0; st->codec.slice_offset[0]= 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment