Commit a2b985c5 authored by michael's avatar michael

indent


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13021 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f6712f8e
...@@ -49,20 +49,20 @@ static av_cold int libgsm_init(AVCodecContext *avctx) { ...@@ -49,20 +49,20 @@ static av_cold int libgsm_init(AVCodecContext *avctx) {
if(!avctx->sample_rate) if(!avctx->sample_rate)
avctx->sample_rate= 8000; avctx->sample_rate= 8000;
}else{ }else{
if (avctx->sample_rate != 8000) { if (avctx->sample_rate != 8000) {
av_log(avctx, AV_LOG_ERROR, "Sample rate 8000Hz required for GSM, got %dHz\n", av_log(avctx, AV_LOG_ERROR, "Sample rate 8000Hz required for GSM, got %dHz\n",
avctx->sample_rate); avctx->sample_rate);
if(avctx->strict_std_compliance > FF_COMPLIANCE_INOFFICIAL) if(avctx->strict_std_compliance > FF_COMPLIANCE_INOFFICIAL)
return -1; return -1;
} }
if (avctx->bit_rate != 13000 /* Official */ && if (avctx->bit_rate != 13000 /* Official */ &&
avctx->bit_rate != 13200 /* Very common */ && avctx->bit_rate != 13200 /* Very common */ &&
avctx->bit_rate != 0 /* Unknown; a.o. mov does not set bitrate when decoding */ ) { avctx->bit_rate != 0 /* Unknown; a.o. mov does not set bitrate when decoding */ ) {
av_log(avctx, AV_LOG_ERROR, "Bitrate 13000bps required for GSM, got %dbps\n", av_log(avctx, AV_LOG_ERROR, "Bitrate 13000bps required for GSM, got %dbps\n",
avctx->bit_rate); avctx->bit_rate);
if(avctx->strict_std_compliance > FF_COMPLIANCE_INOFFICIAL) if(avctx->strict_std_compliance > FF_COMPLIANCE_INOFFICIAL)
return -1; return -1;
} }
} }
avctx->priv_data = gsm_create(); avctx->priv_data = gsm_create();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment