]> git.pld-linux.org Git - packages/avifile.git/blob - avifile-fix-no-bits_per_sample.patch
- new
[packages/avifile.git] / avifile-fix-no-bits_per_sample.patch
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
3 @@ -215,7 +215,7 @@
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)
11             {
12 @@ -239,7 +239,7 @@
13             bh->biHeight = avs->codec->height;
14             bh->biPlanes = 1;
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)
This page took 0.028945 seconds and 3 git commands to generate.