From 8140bf3e52804d972491834a650849e66b6b00c6 Mon Sep 17 00:00:00 2001 From: Oleg Kisselef Date: Fri, 24 Apr 2015 18:27:28 +0600 Subject: [PATCH] mp4 708: fixed *cc_count value obtaining --- src/gpacmp4/mp4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gpacmp4/mp4.c b/src/gpacmp4/mp4.c index 2f3d8b76..c90cccfe 100644 --- a/src/gpacmp4/mp4.c +++ b/src/gpacmp4/mp4.c @@ -247,7 +247,7 @@ unsigned char * ccdp_extract_data(unsigned char * ccdp_atom_content, unsigned in if (*cc_count != 10 && *cc_count != 20 && *cc_count != 25 && *cc_count != 30) { - dbg_print(CCX_DMT_PARSE, "mp4-708-cdp: unexpected cc_count %u\n", cc_count); + dbg_print(CCX_DMT_PARSE, "mp4-708-cdp: unexpected cc_count %u\n", *cc_count); return NULL; } @@ -256,7 +256,7 @@ unsigned char * ccdp_extract_data(unsigned char * ccdp_atom_content, unsigned in if ((*cc_count) * 3 > len) { - dbg_print(CCX_DMT_PARSE, "mp4-708-cdp: not enough bytes left (%u) to carry %u*3 bytes\n", len, cc_count); + dbg_print(CCX_DMT_PARSE, "mp4-708-cdp: not enough bytes left (%u) to carry %u*3 bytes\n", len, *cc_count); return NULL; }