summaryrefslogtreecommitdiff
path: root/ivfenc.c
diff options
context:
space:
mode:
authorDmitry Kovalev <dkovalev@google.com>2014-01-13 15:21:48 -0800
committerDmitry Kovalev <dkovalev@google.com>2014-01-13 15:21:48 -0800
commit096ab11012cd958c9cc3c149f877c37d80b36b2f (patch)
tree65c91554a6ef00d81f05dddb31361c069ac4c511 /ivfenc.c
parentdd31f2e4ae480f074841e0653dff91ccda9df091 (diff)
downloadlibvpx-096ab11012cd958c9cc3c149f877c37d80b36b2f.tar
libvpx-096ab11012cd958c9cc3c149f877c37d80b36b2f.tar.gz
libvpx-096ab11012cd958c9cc3c149f877c37d80b36b2f.tar.bz2
libvpx-096ab11012cd958c9cc3c149f877c37d80b36b2f.zip
Removing pass number check from ivf_write_file_header().
Putting appropriate check to open_output_file() and close_output_file(). Before that the output file has been opened twice during two-pass encoding. Change-Id: I290cecf00513d6a31ca3f45bc20fef7efcb10190
Diffstat (limited to 'ivfenc.c')
-rw-r--r--ivfenc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ivfenc.c b/ivfenc.c
index fa92566f8..611d6676f 100644
--- a/ivfenc.c
+++ b/ivfenc.c
@@ -20,9 +20,6 @@ void ivf_write_file_header(FILE *outfile,
int frame_cnt) {
char header[32];
- if (cfg->g_pass != VPX_RC_ONE_PASS && cfg->g_pass != VPX_RC_LAST_PASS)
- return;
-
header[0] = 'D';
header[1] = 'K';
header[2] = 'I';