# HG changeset patch # User bcoudurier # Date 1220985170 0 # Node ID 5b915da6dd7e2a56df0d57162ccddf606a6650ed # Parent 4a7174c2b34e084710f1e36a3af10cebd7af271f set bits_per_coded_sample according to new lavc api diff -r 4a7174c2b34e -r 5b915da6dd7e avisynth.c --- a/avisynth.c Tue Sep 09 12:10:25 2008 +0000 +++ b/avisynth.c Tue Sep 09 18:32:50 2008 +0000 @@ -91,13 +91,13 @@ st->codec->channels = wvfmt.nChannels; st->codec->sample_rate = wvfmt.nSamplesPerSec; st->codec->bit_rate = wvfmt.nAvgBytesPerSec * 8; - st->codec->bits_per_sample = wvfmt.wBitsPerSample; + st->codec->bits_per_coded_sample = wvfmt.wBitsPerSample; stream->chunck_samples = wvfmt.nSamplesPerSec * (uint64_t)info.dwScale / (uint64_t)info.dwRate; stream->chunck_size = stream->chunck_samples * wvfmt.nChannels * wvfmt.wBitsPerSample / 8; st->codec->codec_tag = wvfmt.wFormatTag; - st->codec->codec_id = wav_codec_get_id(wvfmt.wFormatTag, st->codec->bits_per_sample); + st->codec->codec_id = wav_codec_get_id(wvfmt.wFormatTag, st->codec->bits_per_coded_sample); } else if (stream->info.fccType == streamtypeVIDEO) { @@ -118,7 +118,7 @@ st->codec->width = imgfmt.bmiHeader.biWidth; st->codec->height = imgfmt.bmiHeader.biHeight; - st->codec->bits_per_sample = imgfmt.bmiHeader.biBitCount; + st->codec->bits_per_coded_sample = imgfmt.bmiHeader.biBitCount; st->codec->bit_rate = (uint64_t)stream->info.dwSampleSize * (uint64_t)stream->info.dwRate * 8 / (uint64_t)stream->info.dwScale; st->codec->codec_tag = imgfmt.bmiHeader.biCompression; st->codec->codec_id = codec_get_id(codec_bmp_tags, imgfmt.bmiHeader.biCompression);