diff options
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/encx265.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libhb/encx265.c b/libhb/encx265.c index 8743b8d20..b09b0b4d2 100644 --- a/libhb/encx265.c +++ b/libhb/encx265.c @@ -291,6 +291,9 @@ int encx265Init(hb_work_object_t *w, hb_job_t *job) job->areBframes = (param->bframes > 0) + (param->bframes > 0 && param->bBPyramid > 0); + /* Reset global variables before opening a new encoder */ + x265_cleanup(); + pv->x265 = x265_encoder_open(param); if (pv->x265 == NULL) { |