summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprabhur <prabhur@chromium.org>2014-11-14 15:57:51 -0800
committerCommit bot <commit-bot@chromium.org>2014-11-14 23:59:12 +0000
commit5ac9402d1f2354eccb5affd8b5672d8ce84a941e (patch)
tree4978ed1c679f7e8afec2167ab4c511e6de940ab6
parent29ae89d5019ec937b66613083deb9a87900b39fc (diff)
downloadchromium_src-5ac9402d1f2354eccb5affd8b5672d8ce84a941e.zip
chromium_src-5ac9402d1f2354eccb5affd8b5672d8ce84a941e.tar.gz
chromium_src-5ac9402d1f2354eccb5affd8b5672d8ce84a941e.tar.bz2
Adding media_log event for vp9 codec type
BUG=431443 R=dalecurtis Review URL: https://codereview.chromium.org/725313002 Cr-Commit-Position: refs/heads/master@{#304303}
-rw-r--r--media/filters/ffmpeg_demuxer.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/media/filters/ffmpeg_demuxer.cc b/media/filters/ffmpeg_demuxer.cc
index 00bf910..5fdd9c0 100644
--- a/media/filters/ffmpeg_demuxer.cc
+++ b/media/filters/ffmpeg_demuxer.cc
@@ -1043,6 +1043,9 @@ void FFmpegDemuxer::OnFindStreamInfoDone(const PipelineStatusCB& status_cb,
AVCodec* codec = avcodec_find_decoder(video_codec->codec_id);
if (codec) {
media_log_->SetStringProperty("video_codec_name", codec->name);
+ } else if (video_codec->codec_id == AV_CODEC_ID_VP9) {
+ // ffmpeg doesn't know about VP9 decoder. So we need to log it explicitly.
+ media_log_->SetStringProperty("video_codec_name", "vp9");
}
media_log_->SetIntegerProperty("width", video_codec->width);