From 18121e8bac684cd755164a5123cf03d83c9cfb8b Mon Sep 17 00:00:00 2001 From: hj kim Date: Wed, 4 Sep 2019 17:22:49 +0900 Subject: [PATCH] [DF190903-00975] Add code to support mpeg audio version 2, layer 1 Change-Id: I86c355baa73bb57285764f02ed00b7de2593c537 --- packaging/libmm-fileinfo.spec | 2 +- utils/mm_file_util_validity.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packaging/libmm-fileinfo.spec b/packaging/libmm-fileinfo.spec index 11d77dc..ece709f 100644 --- a/packaging/libmm-fileinfo.spec +++ b/packaging/libmm-fileinfo.spec @@ -1,6 +1,6 @@ Name: libmm-fileinfo Summary: Media Fileinfo -Version: 0.6.77 +Version: 0.6.78 Release: 1 Group: System/Libraries License: Apache-2.0 diff --git a/utils/mm_file_util_validity.c b/utils/mm_file_util_validity.c index b800227..cc256e4 100755 --- a/utils/mm_file_util_validity.c +++ b/utils/mm_file_util_validity.c @@ -1560,7 +1560,8 @@ static int _MMFileIsMPEGAUDIOHeader(void *header) unsigned char *s = header; if ((*(s + 0) == 0xFF) && - ((*(s + 1) == 0xFE) || (*(s + 1) == 0xFF))) { /* mpeg audio layer 1 header ,FE: protected by CRC ,FF: not protected */ + ((*(s + 1) == 0xFE) || (*(s + 1) == 0xFF) /* mpeg audio version 1, layer 1 header, FE: protected by CRC ,FF: not protected */ + || (*(s + 1) == 0xF7))) { /* mpeg audio version 2, layer 1 header, F7: not protected */ return 1; } -- 2.7.4