From b4aa44d54d511ae3ca06dc630a798f8f544848f7 Mon Sep 17 00:00:00 2001 From: "chen89.chen" Date: Thu, 7 Sep 2017 17:25:41 +0800 Subject: [PATCH] mpg audio clip can't play , fix check mpeg audio layer 1 header Change-Id: I34fb96eddddab03039be81d627d45b8fea7bf414 --- packaging/libmm-fileinfo.spec | 2 +- utils/mm_file_util_validity.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/libmm-fileinfo.spec b/packaging/libmm-fileinfo.spec index b1c28f8..a8aa9d1 100755 --- a/packaging/libmm-fileinfo.spec +++ b/packaging/libmm-fileinfo.spec @@ -1,6 +1,6 @@ Name: libmm-fileinfo Summary: Media Fileinfo -Version: 0.6.68 +Version: 0.6.69 Release: 0 Group: System/Libraries License: Apache-2.0 diff --git a/utils/mm_file_util_validity.c b/utils/mm_file_util_validity.c index b78a2f8..9b1d53f 100755 --- a/utils/mm_file_util_validity.c +++ b/utils/mm_file_util_validity.c @@ -1538,7 +1538,7 @@ static int _MMFileIsMPEGAUDIOHeader(void *header) unsigned char *s = header; if ((*(s + 0) == 0xFF) && - (*(s + 1) == 0xFE)) { /* mpeg audio layer 1 header */ + ((*(s + 1) == 0xFE) || (*(s + 1) == 0xFF))) { /* mpeg audio layer 1 header ,FE: protected by CRC ,FF: not protected */ return 1; } -- 2.7.4