Remove all stray tabs and trailing whitespace, this time for good.
Originally committed as revision 4891 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
		
							parent
							
								
									12943a53b5
								
							
						
					
					
						commit
						4f59b684a6
					
				@ -4310,10 +4310,10 @@ static int decode_slice_header(H264Context *h){
 | 
			
		||||
 | 
			
		||||
        if(h->sps.timing_info_present_flag){
 | 
			
		||||
            s->avctx->time_base= (AVRational){h->sps.num_units_in_tick * 2, h->sps.time_scale};
 | 
			
		||||
	    if(h->x264_build > 0 && h->x264_build < 44)
 | 
			
		||||
		s->avctx->time_base.den *= 2;
 | 
			
		||||
	    av_reduce(&s->avctx->time_base.num, &s->avctx->time_base.den,
 | 
			
		||||
		      s->avctx->time_base.num, s->avctx->time_base.den, 1<<30);
 | 
			
		||||
            if(h->x264_build > 0 && h->x264_build < 44)
 | 
			
		||||
                s->avctx->time_base.den *= 2;
 | 
			
		||||
            av_reduce(&s->avctx->time_base.num, &s->avctx->time_base.den,
 | 
			
		||||
                      s->avctx->time_base.num, s->avctx->time_base.den, 1<<30);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -812,7 +812,7 @@ static const int ac3_channels[8] = {
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
static int ac3_sync(const uint8_t *buf, int *channels, int *sample_rate,
 | 
			
		||||
		    int *bit_rate)
 | 
			
		||||
                    int *bit_rate)
 | 
			
		||||
{
 | 
			
		||||
    unsigned int fscod, frmsizecod, acmod, bsid, lfeon;
 | 
			
		||||
    GetBitContext bits;
 | 
			
		||||
@ -820,26 +820,26 @@ static int ac3_sync(const uint8_t *buf, int *channels, int *sample_rate,
 | 
			
		||||
    init_get_bits(&bits, buf, AC3_HEADER_SIZE * 8);
 | 
			
		||||
 | 
			
		||||
    if(get_bits(&bits, 16) != 0x0b77)
 | 
			
		||||
	return 0;
 | 
			
		||||
        return 0;
 | 
			
		||||
 | 
			
		||||
    get_bits(&bits, 16);	/* crc */
 | 
			
		||||
    get_bits(&bits, 16);    /* crc */
 | 
			
		||||
    fscod = get_bits(&bits, 2);
 | 
			
		||||
    frmsizecod = get_bits(&bits, 6);
 | 
			
		||||
 | 
			
		||||
    if(!ac3_sample_rates[fscod])
 | 
			
		||||
	return 0;
 | 
			
		||||
        return 0;
 | 
			
		||||
 | 
			
		||||
    bsid = get_bits(&bits, 5);
 | 
			
		||||
    if(bsid > 8)
 | 
			
		||||
	return 0;
 | 
			
		||||
    get_bits(&bits, 3);	/* bsmod */
 | 
			
		||||
        return 0;
 | 
			
		||||
    get_bits(&bits, 3);     /* bsmod */
 | 
			
		||||
    acmod = get_bits(&bits, 3);
 | 
			
		||||
    if(acmod & 1 && acmod != 1)
 | 
			
		||||
	get_bits(&bits, 2); /* cmixlev */
 | 
			
		||||
        get_bits(&bits, 2); /* cmixlev */
 | 
			
		||||
    if(acmod & 4)
 | 
			
		||||
	get_bits(&bits, 2); /* surmixlev */
 | 
			
		||||
        get_bits(&bits, 2); /* surmixlev */
 | 
			
		||||
    if(acmod & 2)
 | 
			
		||||
	get_bits(&bits, 2); /* dsurmod */
 | 
			
		||||
        get_bits(&bits, 2); /* dsurmod */
 | 
			
		||||
    lfeon = get_bits(&bits, 1);
 | 
			
		||||
 | 
			
		||||
    *sample_rate = ac3_sample_rates[fscod];
 | 
			
		||||
@ -881,7 +881,7 @@ static int ac3_parse(AVCodecParserContext *s1,
 | 
			
		||||
            s->inbuf_ptr += len;
 | 
			
		||||
            buf_size -= len;
 | 
			
		||||
            if ((s->inbuf_ptr - s->inbuf) == AC3_HEADER_SIZE) {
 | 
			
		||||
		len = ac3_sync(s->inbuf, &channels, &sample_rate, &bit_rate);
 | 
			
		||||
                len = ac3_sync(s->inbuf, &channels, &sample_rate, &bit_rate);
 | 
			
		||||
                if (len == 0) {
 | 
			
		||||
                    /* no sync found : move by one byte (inefficient, but simple!) */
 | 
			
		||||
                    memmove(s->inbuf, s->inbuf + 1, AC3_HEADER_SIZE - 1);
 | 
			
		||||
@ -892,7 +892,7 @@ static int ac3_parse(AVCodecParserContext *s1,
 | 
			
		||||
                    avctx->sample_rate = sample_rate;
 | 
			
		||||
                    /* set channels,except if the user explicitly requests 1 or 2 channels, XXX/FIXME this is a bit ugly */
 | 
			
		||||
                    if(avctx->channels!=1 && avctx->channels!=2){
 | 
			
		||||
			avctx->channels = channels;
 | 
			
		||||
                        avctx->channels = channels;
 | 
			
		||||
                    }
 | 
			
		||||
                    avctx->bit_rate = bit_rate;
 | 
			
		||||
                    avctx->frame_size = 6 * 256;
 | 
			
		||||
 | 
			
		||||
@ -258,14 +258,14 @@ X264_init(AVCodecContext *avctx)
 | 
			
		||||
    avctx->coded_frame = &x4->out_pic;
 | 
			
		||||
 | 
			
		||||
    if(avctx->flags & CODEC_FLAG_GLOBAL_HEADER){
 | 
			
		||||
	x264_nal_t *nal;
 | 
			
		||||
	int nnal, i, s = 0;
 | 
			
		||||
        x264_nal_t *nal;
 | 
			
		||||
        int nnal, i, s = 0;
 | 
			
		||||
 | 
			
		||||
	x264_encoder_headers(x4->enc, &nal, &nnal);
 | 
			
		||||
        x264_encoder_headers(x4->enc, &nal, &nnal);
 | 
			
		||||
 | 
			
		||||
	/* 5 bytes NAL header + worst case escaping */
 | 
			
		||||
	for(i = 0; i < nnal; i++)
 | 
			
		||||
	    s += 5 + nal[i].i_payload * 4 / 3;
 | 
			
		||||
        /* 5 bytes NAL header + worst case escaping */
 | 
			
		||||
        for(i = 0; i < nnal; i++)
 | 
			
		||||
            s += 5 + nal[i].i_payload * 4 / 3;
 | 
			
		||||
 | 
			
		||||
        avctx->extradata = av_malloc(s);
 | 
			
		||||
        avctx->extradata_size = encode_nals(avctx->extradata, s, nal, nnal);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user