From 7eaae1d4be4c16c76d21f34bb1a38e735d256d79 Mon Sep 17 00:00:00 2001 From: Ralph Giles Date: Thu, 21 Aug 2014 16:21:00 -0700 Subject: [PATCH] Bug 1057110 - Don't log h.264 sample sha1 by default. r=cpearce This was useful for comparing input between different demuxers but isn't really necessary now that things are running. Can be removed when things are more stable. --- content/media/fmp4/apple/AppleVTDecoder.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/content/media/fmp4/apple/AppleVTDecoder.cpp b/content/media/fmp4/apple/AppleVTDecoder.cpp index 2dc8d51c7b9c..7774680127b1 100644 --- a/content/media/fmp4/apple/AppleVTDecoder.cpp +++ b/content/media/fmp4/apple/AppleVTDecoder.cpp @@ -7,7 +7,6 @@ #include #include "AppleUtils.h" -#include "mozilla/SHA1.h" #include "mp4_demuxer/DecoderData.h" #include "MP4Reader.h" #include "MP4Decoder.h" @@ -23,11 +22,15 @@ #ifdef PR_LOGGING PRLogModuleInfo* GetAppleMediaLog(); #define LOG(...) PR_LOG(GetAppleMediaLog(), PR_LOG_DEBUG, (__VA_ARGS__)) -#define LOG_MEDIA_SHA1 +//#define LOG_MEDIA_SHA1 #else #define LOG(...) #endif +#ifdef LOG_MEDIA_SHA1 +#include "mozilla/SHA1.h" +#endif + namespace mozilla { AppleVTDecoder::AppleVTDecoder(const mp4_demuxer::VideoDecoderConfig& aConfig,