Commit 7129455e authored by bellard's avatar bellard

use av_malloc()


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1502 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5475d1ac
...@@ -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