s302m: fix resampling for 16 and 24bits.
This commit is contained in:
parent
21c6512542
commit
4f8da7e7dc
@ -97,7 +97,7 @@ static int s302m_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
*o++ = (av_reverse[buf[6] & 0xf0] << 28) |
|
*o++ = (av_reverse[buf[6] & 0xf0] << 28) |
|
||||||
(av_reverse[buf[5]] << 20) |
|
(av_reverse[buf[5]] << 20) |
|
||||||
(av_reverse[buf[4]] << 12) |
|
(av_reverse[buf[4]] << 12) |
|
||||||
(av_reverse[buf[3] & 0x0f] << 8);
|
(av_reverse[buf[3] & 0x0f] << 4);
|
||||||
buf += 7;
|
buf += 7;
|
||||||
}
|
}
|
||||||
*data_size = (uint8_t*) o - (uint8_t*) data;
|
*data_size = (uint8_t*) o - (uint8_t*) data;
|
||||||
@ -120,7 +120,7 @@ static int s302m_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
av_reverse[buf[0]];
|
av_reverse[buf[0]];
|
||||||
*o++ = (av_reverse[buf[4] & 0xf0] << 12) |
|
*o++ = (av_reverse[buf[4] & 0xf0] << 12) |
|
||||||
(av_reverse[buf[3]] << 4) |
|
(av_reverse[buf[3]] << 4) |
|
||||||
av_reverse[buf[2] & 0x0f];
|
(av_reverse[buf[2]] >> 4);
|
||||||
buf += 5;
|
buf += 5;
|
||||||
}
|
}
|
||||||
*data_size = (uint8_t*) o - (uint8_t*) data;
|
*data_size = (uint8_t*) o - (uint8_t*) data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user