| Index: media/ffmpeg/ffmpeg_common.cc
|
| diff --git a/media/ffmpeg/ffmpeg_common.cc b/media/ffmpeg/ffmpeg_common.cc
|
| index 9296f50212c75f1ef2d49900527e5052da8b2d74..1a45134c8376c575dc0cf18101bd88b60494cdae 100644
|
| --- a/media/ffmpeg/ffmpeg_common.cc
|
| +++ b/media/ffmpeg/ffmpeg_common.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "base/basictypes.h"
|
| #include "base/logging.h"
|
| +#include "base/metrics/histogram.h"
|
| #include "base/strings/string_number_conversions.h"
|
| #include "media/base/decoder_buffer.h"
|
| #include "media/base/video_frame.h"
|
| @@ -382,6 +383,12 @@ void AVStreamToVideoDecoderConfig(
|
| gfx::Size natural_size = GetNaturalSize(
|
| visible_rect.size(), aspect_ratio.num, aspect_ratio.den);
|
|
|
| + if (record_stats) {
|
| + UMA_HISTOGRAM_ENUMERATION("Media.VideoColorRange",
|
| + stream->codec->color_range,
|
| + AVCOL_RANGE_NB);
|
| + }
|
| +
|
| VideoFrame::Format format = PixelFormatToVideoFormat(stream->codec->pix_fmt);
|
| if (codec == kCodecVP9) {
|
| // TODO(tomfinegan): libavcodec doesn't know about VP9.
|
|
|