From c3cdf3ab8b679bf876c4cbd1e6f904597ccaf69c Mon Sep 17 00:00:00 2001 From: Kitae Kim Date: Wed, 29 Aug 2012 21:53:13 +0900 Subject: [PATCH] [Title] modify audio decoder part. [Type] bug fix [Module] emulator / codec [Priority] [CQ#] [Redmine#] [Problem] sample rate of audio can be changed after decoding. [Cause] [Solution] need to copy the value from qemu to guest. [TestCase] --- tizen/src/hw/maru_codec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tizen/src/hw/maru_codec.c b/tizen/src/hw/maru_codec.c index a0e889cbdf..30bd07c3dd 100644 --- a/tizen/src/hw/maru_codec.c +++ b/tizen/src/hw/maru_codec.c @@ -948,6 +948,10 @@ int qemu_avcodec_decode_audio(SVCodecState *s, int ctx_index) memcpy((uint8_t *)s->vaddr + offset, &avctx->bit_rate, sizeof(int)); size = sizeof(int); + memcpy((uint8_t *)s->vaddr + offset + size, &avctx->sample_rate, sizeof(int)); + size += sizeof(int); + memcpy((uint8_t *)s->vaddr + offset + size, &avctx->channels, sizeof(int)); + size += sizeof(int); memcpy((uint8_t *)s->vaddr + offset + size, &avctx->sub_id, sizeof(int)); size += sizeof(int); memcpy((uint8_t *)s->vaddr + offset + size, -- 2.34.1