blob: 7fe101045038eb7dce4db23ba3bf5f744b669ab4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
From 3b9c9a263f7ffa959d56d914c62df18c9567c0db Mon Sep 17 00:00:00 2001
From: John Stebbins <jstebbins.hb@gmail.com>
Date: Tue, 27 Dec 2016 08:56:25 -0800
Subject: [PATCH] encavcodec: fix crash during 2 pass encode
This affect mpeg4, mpeg2, vp8 and vp9 encoding
---
libhb/encavcodec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c
index d7a751e..0543fe4 100644
--- a/libhb/encavcodec.c
+++ b/libhb/encavcodec.c
@@ -352,10 +352,10 @@ int encavcodecInit( hb_work_object_t * w, hb_job_t * job )
}
if (job->pass_id == HB_PASS_ENCODE_1ST &&
- pv->context->stats_out != NULL)
+ context->stats_out != NULL)
{
// Some encoders may write stats during init in avcodec_open
- fprintf(pv->file, "%s", pv->context->stats_out);
+ fprintf(pv->file, "%s", context->stats_out);
}
// avcodec_open populates the opts dictionary with the
|