mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 05:00:37 +00:00
dpcm: Fix invalid writes
Fixes bug: #152 Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
This commit is contained in:
parent
12e984aed7
commit
529a25d6e5
@ -288,7 +288,7 @@ static int dpcm_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
}
|
}
|
||||||
case CODEC_ID_SOL_DPCM:
|
case CODEC_ID_SOL_DPCM:
|
||||||
if (avctx->codec_tag != 3) {
|
if (avctx->codec_tag != 3) {
|
||||||
uint8_t *output_samples_u8 = data;
|
uint8_t *output_samples_u8 = s->frame.data[0];
|
||||||
while (buf < buf_end) {
|
while (buf < buf_end) {
|
||||||
uint8_t n = *buf++;
|
uint8_t n = *buf++;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user