From: Kitae Kim Date: Wed, 29 Aug 2012 12:53:13 +0000 (+0900) Subject: [Title] modify audio decoder part. X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1492 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c3cdf3ab8b679bf876c4cbd1e6f904597ccaf69c;p=sdk%2Femulator%2Fqemu.git [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] --- 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,