summaryrefslogtreecommitdiffstats
path: root/libhb/encavcodec.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2017-07-06 09:15:21 -0700
committerJohn Stebbins <[email protected]>2017-07-06 09:15:21 -0700
commit532f067cca2113ea289282ea57e594efab5ba2a0 (patch)
tree3b47e5af51173d4d1832d40b1be7f097cce5715c /libhb/encavcodec.c
parentc576eb99926c0cb2bc60a45be744ca21b06eb77e (diff)
fix use of deprecated libav defines
Fixes https://github.com/HandBrake/HandBrake/issues/815
Diffstat (limited to 'libhb/encavcodec.c')
-rw-r--r--libhb/encavcodec.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c
index 76fe3e7c7..59d491148 100644
--- a/libhb/encavcodec.c
+++ b/libhb/encavcodec.c
@@ -235,7 +235,7 @@ int encavcodecInit( hb_work_object_t * w, hb_job_t * job )
/* Constant quantizer */
// These settings produce better image quality than
// what was previously used
- context->flags |= CODEC_FLAG_QSCALE;
+ context->flags |= AV_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 ||
@@ -278,11 +278,11 @@ int encavcodecInit( hb_work_object_t * w, hb_job_t * job )
if( job->mux & HB_MUX_MASK_MP4 )
{
- context->flags |= CODEC_FLAG_GLOBAL_HEADER;
+ context->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
}
if( job->grayscale )
{
- context->flags |= CODEC_FLAG_GRAY;
+ context->flags |= AV_CODEC_FLAG_GRAY;
}
if( job->pass_id == HB_PASS_ENCODE_1ST ||
@@ -302,7 +302,7 @@ int encavcodecInit( hb_work_object_t * w, hb_job_t * job )
ret = 1;
goto done;
}
- context->flags |= CODEC_FLAG_PASS1;
+ context->flags |= AV_CODEC_FLAG_PASS1;
}
else
{
@@ -341,7 +341,7 @@ int encavcodecInit( hb_work_object_t * w, hb_job_t * job )
fclose( pv->file );
pv->file = NULL;
- context->flags |= CODEC_FLAG_PASS2;
+ context->flags |= AV_CODEC_FLAG_PASS2;
context->stats_in = log;
}
}