Browse Source

Encoding alac with more than two channels is not supported.

tags/n0.8
Carl Eugen Hoyos 14 years ago
parent
commit
007f773942
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      libavcodec/alacenc.c

+ 5
- 0
libavcodec/alacenc.c View File

@@ -389,6 +389,11 @@ static av_cold int alac_encode_init(AVCodecContext *avctx)
return -1;
}

if(avctx->channels > 2) {
av_log(avctx, AV_LOG_ERROR, "channels > 2 not supported\n");
return AVERROR_PATCHWELCOME;
}

// Set default compression level
if(avctx->compression_level == FF_COMPRESSION_DEFAULT)
s->compression_level = 2;


Loading…
Cancel
Save