1 --- avifile-0.7-0.7.45/lib/aviread/FFReadStream.cpp.old 2008-10-05 00:33:50.000000000 +0200
2 +++ avifile-0.7-0.7.45/lib/aviread/FFReadStream.cpp 2008-10-05 00:34:17.000000000 +0200
4 wf->nSamplesPerSec = avs->codec->sample_rate;
5 wf->nAvgBytesPerSec = avs->codec->bit_rate / 8;
6 wf->nBlockAlign = avs->codec->block_align;
7 - wf->wBitsPerSample = avs->codec->bits_per_sample;
8 + wf->wBitsPerSample = avs->codec->bits_per_coded_sample;
9 if (lSize >= (sizeof(WAVEFORMATEX) + avs->codec->extradata_size)
10 && avs->codec->extradata)
13 bh->biHeight = avs->codec->height;
15 bh->biCompression = avs->codec->codec_tag;
16 - bh->biBitCount = avs->codec->bits_per_sample;
17 + bh->biBitCount = avs->codec->bits_per_coded_sample;
18 // hack which might be eventually usefull
19 memcpy(&bh->biXPelsPerMeter, &m_pHandler->m_pContext, sizeof(void*));
20 if (bh->biCompression == 0)