comparison avpacket.c @ 10674:f04468776158 libavcodec

indent
author michael
date Fri, 11 Dec 2009 21:50:08 +0000
parents 158f0ea08e82
children
comparison
equal deleted inserted replaced
10673:158f0ea08e82 10674:f04468776158
47 47
48 int av_new_packet(AVPacket *pkt, int size) 48 int av_new_packet(AVPacket *pkt, int size)
49 { 49 {
50 uint8_t *data= NULL; 50 uint8_t *data= NULL;
51 if((unsigned)size < (unsigned)size + FF_INPUT_BUFFER_PADDING_SIZE) 51 if((unsigned)size < (unsigned)size + FF_INPUT_BUFFER_PADDING_SIZE)
52 data = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE); 52 data = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE);
53 if (data){ 53 if (data){
54 memset(data + size, 0, FF_INPUT_BUFFER_PADDING_SIZE); 54 memset(data + size, 0, FF_INPUT_BUFFER_PADDING_SIZE);
55 }else 55 }else
56 size=0; 56 size=0;
57 57
58 av_init_packet(pkt); 58 av_init_packet(pkt);
59 pkt->data = data; 59 pkt->data = data;