Mercurial > libavformat.hg
comparison rm.c @ 33:3eff1f2dcf71 libavformat
use av_malloc()
author | bellard |
---|---|
date | Thu, 23 Jan 2003 22:57:56 +0000 |
parents | b167760cd0aa |
children | a58a8a53eb46 |
comparison
equal
deleted
inserted
replaced
32:cd0155c9022e | 33:3eff1f2dcf71 |
---|---|
701 } | 701 } |
702 /* picture number */ | 702 /* picture number */ |
703 pic_num= get_byte(pb); | 703 pic_num= get_byte(pb); |
704 | 704 |
705 //XXX/FIXME/HACK, demuxer should be fixed to send complete frames ... | 705 //XXX/FIXME/HACK, demuxer should be fixed to send complete frames ... |
706 if(st->codec.slice_offset==NULL) st->codec.slice_offset= (int*)malloc(sizeof(int)); | 706 if(st->codec.slice_offset==NULL) |
707 st->codec.slice_offset= (int*)av_malloc(sizeof(int)); | |
707 st->codec.slice_count= full_frame; | 708 st->codec.slice_count= full_frame; |
708 st->codec.slice_offset[0]= 0; | 709 st->codec.slice_offset[0]= 0; |
709 } | 710 } |
710 | 711 |
711 av_new_packet(pkt, len); | 712 av_new_packet(pkt, len); |