[Title] Modify decoding audio part
authorKitae Kim <kt920.kim@samsung.com>
Tue, 8 May 2012 13:56:42 +0000 (22:56 +0900)
committerKitae Kim <kt920.kim@samsung.com>
Tue, 8 May 2012 13:56:42 +0000 (22:56 +0900)
[Type] bug fix
[Module] emulator / codec
[Priority]
[CQ#]
[Redmine#]
[Problem] copying some codec data from host to guest was missing.
[Cause]
[Solution]
[TestCase]

tizen/src/hw/maru_codec.c
tizen/src/hw/maru_codec.h

index ce5d2daac5d842314ab968322b73cf8aa7eaee04..b57da68df03e44df13f9abad9eb845e167f99a7a 100644 (file)
@@ -118,7 +118,7 @@ static void qemu_restore_context (AVCodecContext *dst, AVCodecContext *src)
     TRACE("[%s] Leave\n", __func__);
 }
 
-void qemu_get_codec_ver (SVCodecState *s, int ctxIndex)
+static void qemu_get_codec_ver (SVCodecState *s, int ctxIndex)
 {
     char codec_ver[32];
     off_t offset;
@@ -345,6 +345,8 @@ static int qemu_avcodec_open (SVCodecState *s, int ctxIndex)
     size = sizeof(int);
     memcpy((uint8_t*)s->vaddr + offset + size, &avctx->time_base, sizeof(AVRational));
     size += sizeof(AVRational);
+    memcpy((uint8_t*)s->vaddr + offset + size, &avctx->channels, sizeof(int));
+    size += sizeof(int);
     memcpy((uint8_t*)s->vaddr + offset + size, &avctx->sample_fmt, sizeof(int));
     size += sizeof(int);
     memcpy((uint8_t*)s->vaddr + offset + size, &avctx->codec_type, sizeof(int));
index 8d55cd7b4b43e3b3333ff54e1f83c14a16d8ba10..934d3489714bef6f35b6f59e8d35de024c70d09f 100644 (file)
@@ -132,6 +132,7 @@ static void qemu_parser_init (SVCodecState *s, int ctxIndex);
 
 static void qemu_restore_context (AVCodecContext *dst, AVCodecContext *src);
 
+static void qemu_get_codec_ver (SVCodecState *s, int ctxIndex);
 /*
  *  FFMPEG APIs
  */