diff options
author | Yaowu Xu <yaowu@google.com> | 2015-08-14 12:30:10 -0700 |
---|---|---|
committer | Yaowu Xu <yaowu@google.com> | 2015-08-14 12:54:59 -0700 |
commit | 3d1bb97b1b8018c6ba3524473fa4f99032f35397 (patch) | |
tree | 288394c82a24807547600e65880afe54da7680d6 /webmenc.cc | |
parent | 72889a2a60926e1b3f9aa765707b0d369a1706ab (diff) | |
download | libvpx-3d1bb97b1b8018c6ba3524473fa4f99032f35397.tar.gz libvpx-3d1bb97b1b8018c6ba3524473fa4f99032f35397.tar.bz2 libvpx-3d1bb97b1b8018c6ba3524473fa4f99032f35397.zip |
write correct codecID for vp10 webm file
Change-Id: Ifeb6073c4a687a73540a0f8aef0d834f4712c193
Diffstat (limited to 'webmenc.cc')
-rw-r--r-- | webmenc.cc | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/webmenc.cc b/webmenc.cc index 8212ee36c..d41e70044 100644 --- a/webmenc.cc +++ b/webmenc.cc @@ -49,7 +49,22 @@ void write_webm_file_header(struct EbmlGlobal *glob, static_cast<mkvmuxer::VideoTrack*>( segment->GetTrackByNumber(video_track_id)); video_track->SetStereoMode(stereo_fmt); - video_track->set_codec_id(fourcc == VP8_FOURCC ? "V_VP8" : "V_VP9"); + const char *codec_id; + switch (fourcc) { + case VP8_FOURCC: + codec_id = "V_VP8"; + break; + case VP9_FOURCC: + codec_id = "V_VP9"; + break; + case VP10_FOURCC: + codec_id = "V_VP10"; + break; + default: + codec_id = "V_VP10"; + break; + } + video_track->set_codec_id(codec_id); if (par->numerator > 1 || par->denominator > 1) { // TODO(fgalligan): Add support of DisplayUnit, Display Aspect Ratio type // to WebM format. |