comparison adtsenc.c @ 6242:79b5e6fa86c9 libavformat

Cosmetics: whitespace
author alexc
date Wed, 07 Jul 2010 20:03:15 +0000
parents 1327f1008940
children
comparison
equal deleted inserted replaced
6241:a7e674f70016 6242:79b5e6fa86c9
75 static int adts_write_header(AVFormatContext *s) 75 static int adts_write_header(AVFormatContext *s)
76 { 76 {
77 ADTSContext *adts = s->priv_data; 77 ADTSContext *adts = s->priv_data;
78 AVCodecContext *avc = s->streams[0]->codec; 78 AVCodecContext *avc = s->streams[0]->codec;
79 79
80 if(avc->extradata_size > 0 && 80 if (avc->extradata_size > 0 &&
81 ff_adts_decode_extradata(s, adts, avc->extradata, avc->extradata_size) < 0) 81 ff_adts_decode_extradata(s, adts, avc->extradata, avc->extradata_size) < 0)
82 return -1; 82 return -1;
83 83
84 return 0; 84 return 0;
85 } 85 }
121 ByteIOContext *pb = s->pb; 121 ByteIOContext *pb = s->pb;
122 uint8_t buf[ADTS_HEADER_SIZE]; 122 uint8_t buf[ADTS_HEADER_SIZE];
123 123
124 if (!pkt->size) 124 if (!pkt->size)
125 return 0; 125 return 0;
126 if(adts->write_adts) { 126 if (adts->write_adts) {
127 ff_adts_write_frame_header(adts, buf, pkt->size, adts->pce_size); 127 ff_adts_write_frame_header(adts, buf, pkt->size, adts->pce_size);
128 put_buffer(pb, buf, ADTS_HEADER_SIZE); 128 put_buffer(pb, buf, ADTS_HEADER_SIZE);
129 if(adts->pce_size) { 129 if (adts->pce_size) {
130 put_buffer(pb, adts->pce_data, adts->pce_size); 130 put_buffer(pb, adts->pce_data, adts->pce_size);
131 adts->pce_size = 0; 131 adts->pce_size = 0;
132 } 132 }
133 } 133 }
134 put_buffer(pb, pkt->data, pkt->size); 134 put_buffer(pb, pkt->data, pkt->size);