diff options
author | John Stebbins <[email protected]> | 2016-05-27 08:05:53 -0600 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-05-27 13:53:16 -0600 |
commit | fe32414aef3a21fc7f42b38cc1f8eea8a62476a3 (patch) | |
tree | 6273f6cd63bee65f02555c825d3915aed2337f1f /libhb/encavcodec.c | |
parent | 9ec150b5461cc59eda93c5d3b3199fd97809972d (diff) |
enable libvpx VP9 encoder
Diffstat (limited to 'libhb/encavcodec.c')
-rw-r--r-- | libhb/encavcodec.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c index 59c787326..677f8a22e 100644 --- a/libhb/encavcodec.c +++ b/libhb/encavcodec.c @@ -87,6 +87,10 @@ int encavcodecInit( hb_work_object_t * w, hb_job_t * job ) { hb_log("encavcodecInit: VP8 encoder"); } break; + case AV_CODEC_ID_VP9: + { + hb_log("encavcodecInit: VP9 encoder"); + } break; default: { hb_error("encavcodecInit: unsupported encoder!"); @@ -201,7 +205,8 @@ int encavcodecInit( hb_work_object_t * w, hb_job_t * job ) context->flags |= CODEC_FLAG_QSCALE; context->global_quality = FF_QP2LAMBDA * job->vquality + 0.5; //Set constant quality for libvpx - if ( w->codec_param == AV_CODEC_ID_VP8 ) + if ( w->codec_param == AV_CODEC_ID_VP8 || + w->codec_param == AV_CODEC_ID_VP9 ) { char quality[7]; snprintf(quality, 7, "%.2f", job->vquality); |