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."; + } } }