mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-22 07:20:45 +00:00
use av_malloc()
Originally committed as revision 1502 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
98486a6bc0
commit
39f853afe9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user