Skip to content

Commit d0e01cf

Browse files
committed
fix initialization issue
Signed-off-by: yilun.zhang <yilun.zhang@samsung.com>
1 parent 9df59e0 commit d0e01cf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

code/test/tools/iamfdec/src/test_iamfdec.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,10 +819,11 @@ static int mp4_input_wav_output2(decoder_args_t *das) {
819819

820820
if (!das->path) return -1;
821821

822+
memset(&mp4par, 0, sizeof(mp4par));
823+
822824
ret = decoder_init(&decoder, das);
823825
if (ret < 0) goto end;
824826

825-
memset(&mp4par, 0, sizeof(mp4par));
826827
mp4_iamf_parser_init(&mp4par);
827828
mp4_iamf_parser_set_logger(&mp4par, 0);
828829
ret = mp4_iamf_parser_open_audio_track(&mp4par, das->path, &header);

0 commit comments

Comments
 (0)