comparison libgsm.c @ 6721:1c3bcb60bed4 libavcodec

indent
author michael
date Tue, 29 Apr 2008 18:32:06 +0000
parents 2c540dc9ca2c
children e943e1409077
comparison
equal deleted inserted replaced
6720:2c540dc9ca2c 6721:1c3bcb60bed4
47 avctx->channels= 1; 47 avctx->channels= 1;
48 48
49 if(!avctx->sample_rate) 49 if(!avctx->sample_rate)
50 avctx->sample_rate= 8000; 50 avctx->sample_rate= 8000;
51 }else{ 51 }else{
52 if (avctx->sample_rate != 8000) { 52 if (avctx->sample_rate != 8000) {
53 av_log(avctx, AV_LOG_ERROR, "Sample rate 8000Hz required for GSM, got %dHz\n", 53 av_log(avctx, AV_LOG_ERROR, "Sample rate 8000Hz required for GSM, got %dHz\n",
54 avctx->sample_rate); 54 avctx->sample_rate);
55 if(avctx->strict_std_compliance > FF_COMPLIANCE_INOFFICIAL) 55 if(avctx->strict_std_compliance > FF_COMPLIANCE_INOFFICIAL)
56 return -1; 56 return -1;
57 } 57 }
58 if (avctx->bit_rate != 13000 /* Official */ && 58 if (avctx->bit_rate != 13000 /* Official */ &&
59 avctx->bit_rate != 13200 /* Very common */ && 59 avctx->bit_rate != 13200 /* Very common */ &&
60 avctx->bit_rate != 0 /* Unknown; a.o. mov does not set bitrate when decoding */ ) { 60 avctx->bit_rate != 0 /* Unknown; a.o. mov does not set bitrate when decoding */ ) {
61 av_log(avctx, AV_LOG_ERROR, "Bitrate 13000bps required for GSM, got %dbps\n", 61 av_log(avctx, AV_LOG_ERROR, "Bitrate 13000bps required for GSM, got %dbps\n",
62 avctx->bit_rate); 62 avctx->bit_rate);
63 if(avctx->strict_std_compliance > FF_COMPLIANCE_INOFFICIAL) 63 if(avctx->strict_std_compliance > FF_COMPLIANCE_INOFFICIAL)
64 return -1; 64 return -1;
65 } 65 }
66 } 66 }
67 67
68 avctx->priv_data = gsm_create(); 68 avctx->priv_data = gsm_create();
69 69
70 switch(avctx->codec_id) { 70 switch(avctx->codec_id) {