From 77fc3f69888dd058576085f7f180d934daefaa64 Mon Sep 17 00:00:00 2001 From: Kongqun Yang Date: Thu, 21 Apr 2016 11:17:54 -0700 Subject: [PATCH] Fix an unintended warning message The warning message was included accidentally for audio encryption during rebase. Change-Id: I105f2f01cb9016fc6c57494708ba6d9cbb2ff53c --- packager/media/formats/mp4/encrypting_fragmenter.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packager/media/formats/mp4/encrypting_fragmenter.cc b/packager/media/formats/mp4/encrypting_fragmenter.cc index 080ddc8bdc..8185e74862 100644 --- a/packager/media/formats/mp4/encrypting_fragmenter.cc +++ b/packager/media/formats/mp4/encrypting_fragmenter.cc @@ -93,8 +93,10 @@ EncryptingFragmenter::EncryptingFragmenter( header_parser_.reset(new H265VideoSliceHeaderParser); break; default: - LOG(WARNING) << "Unknown video codec '" << video_codec_ - << "', whole subsamples will be encrypted."; + if (nalu_length_size_ > 0) { + LOG(WARNING) << "Unknown video codec '" << video_codec_ + << "', whole subsamples will be encrypted."; + } } }