Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 1f7da3b in mainline


Ignore:
Timestamp:
2012-07-18T11:05:08Z (9 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
1bebadee
Parents:
aef1799
Message:

libpcm: Fix wrong size parameter.

Fixes broken mixing of streams with different bit depths.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/pcm/src/format.c

    raef1799 r1f7da3b  
    160160                for (unsigned j = 0; j < df->channels; ++j) { \
    161161                        const float a = \
    162                             get_normalized_sample(dst, src_size, i, j, df);\
     162                            get_normalized_sample(dst, dst_size, i, j, df);\
    163163                        const float b = \
    164                             get_normalized_sample(src, dst_size, i, j, sf);\
     164                            get_normalized_sample(src, src_size, i, j, sf);\
    165165                        float c = (a + b); \
    166166                        if (c < -1.0) c = -1.0; \
Note: See TracChangeset for help on using the changeset viewer.