Fix misleading error messages in WebM output

Issue #239

Change-Id: I4e6e6aafbeb0e9613769e05bd81353409576876d
This commit is contained in:
KongQun Yang 2017-05-30 16:29:42 -07:00
parent 19be04ecce
commit 5ad40df810
1 changed files with 4 additions and 4 deletions

View File

@ -314,9 +314,9 @@ Status Segmenter::InitializeVideoTrack(const VideoStreamInfo* info,
"Private codec data required for VPx streams"); "Private codec data required for VPx streams");
} }
} else { } 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, 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()); track->set_uid(info->track_id());
@ -338,9 +338,9 @@ Status Segmenter::InitializeAudioTrack(const AudioStreamInfo* info,
} else if (info->codec() == kCodecVorbis) { } else if (info->codec() == kCodecVorbis) {
track->set_codec_id(mkvmuxer::Tracks::kVorbisCodecId); track->set_codec_id(mkvmuxer::Tracks::kVorbisCodecId);
} else { } 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, 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(), if (!track->SetCodecPrivate(info->codec_config().data(),
info->codec_config().size())) { info->codec_config().size())) {