From 5ad40df810ab380c5d94d942bdc46c0bd80c393e Mon Sep 17 00:00:00 2001 From: KongQun Yang Date: Tue, 30 May 2017 16:29:42 -0700 Subject: [PATCH] Fix misleading error messages in WebM output Issue #239 Change-Id: I4e6e6aafbeb0e9613769e05bd81353409576876d --- packager/media/formats/webm/segmenter.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packager/media/formats/webm/segmenter.cc b/packager/media/formats/webm/segmenter.cc index 2e2cffa8c5..fe46bdb05f 100644 --- a/packager/media/formats/webm/segmenter.cc +++ b/packager/media/formats/webm/segmenter.cc @@ -314,9 +314,9 @@ Status Segmenter::InitializeVideoTrack(const VideoStreamInfo* info, "Private codec data required for VPx streams"); } } else { - LOG(ERROR) << "Only VP8 and VP9 video codecs are supported."; + LOG(ERROR) << "Only VP8 and VP9 video codecs are supported in WebM."; return Status(error::UNIMPLEMENTED, - "Only VP8 and VP9 video codecs are supported."); + "Only VP8 and VP9 video codecs are supported in WebM."); } track->set_uid(info->track_id()); @@ -338,9 +338,9 @@ Status Segmenter::InitializeAudioTrack(const AudioStreamInfo* info, } else if (info->codec() == kCodecVorbis) { track->set_codec_id(mkvmuxer::Tracks::kVorbisCodecId); } else { - LOG(ERROR) << "Only Vorbis and Opus audio codec is supported."; + LOG(ERROR) << "Only Vorbis and Opus audio codec are supported in WebM."; return Status(error::UNIMPLEMENTED, - "Only Vorbis and Opus audio codecs are supported."); + "Only Vorbis and Opus audio codecs are supported in WebM."); } if (!track->SetCodecPrivate(info->codec_config().data(), info->codec_config().size())) {