Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
aom-rav1e
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
aom-rav1e
Commits
f1cf4058
Commit
f1cf4058
authored
Jan 15, 2014
by
Dmitry Kovalev
Committed by
Gerrit Code Review
Jan 15, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Removing pass number check from ivf_write_file_header()."
parents
9adcc4d6
096ab110
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
ivfenc.c
ivfenc.c
+0
-3
vpxenc.c
vpxenc.c
+14
-5
No files found.
ivfenc.c
View file @
f1cf4058
...
@@ -20,9 +20,6 @@ void ivf_write_file_header(FILE *outfile,
...
@@ -20,9 +20,6 @@ void ivf_write_file_header(FILE *outfile,
int
frame_cnt
)
{
int
frame_cnt
)
{
char
header
[
32
];
char
header
[
32
];
if
(
cfg
->
g_pass
!=
VPX_RC_ONE_PASS
&&
cfg
->
g_pass
!=
VPX_RC_LAST_PASS
)
return
;
header
[
0
]
=
'D'
;
header
[
0
]
=
'D'
;
header
[
1
]
=
'K'
;
header
[
1
]
=
'K'
;
header
[
2
]
=
'I'
;
header
[
2
]
=
'I'
;
...
...
vpxenc.c
View file @
f1cf4058
...
@@ -1393,6 +1393,10 @@ static void show_stream_config(struct stream_state *stream,
...
@@ -1393,6 +1393,10 @@ static void show_stream_config(struct stream_state *stream,
static
void
open_output_file
(
struct
stream_state
*
stream
,
static
void
open_output_file
(
struct
stream_state
*
stream
,
struct
VpxEncoderConfig
*
global
)
{
struct
VpxEncoderConfig
*
global
)
{
const
char
*
fn
=
stream
->
config
.
out_fn
;
const
char
*
fn
=
stream
->
config
.
out_fn
;
const
struct
vpx_codec_enc_cfg
*
const
cfg
=
&
stream
->
config
.
cfg
;
if
(
cfg
->
g_pass
==
VPX_RC_FIRST_PASS
)
return
;
stream
->
file
=
strcmp
(
fn
,
"-"
)
?
fopen
(
fn
,
"wb"
)
:
set_binary_mode
(
stdout
);
stream
->
file
=
strcmp
(
fn
,
"-"
)
?
fopen
(
fn
,
"wb"
)
:
set_binary_mode
(
stdout
);
...
@@ -1404,18 +1408,23 @@ static void open_output_file(struct stream_state *stream,
...
@@ -1404,18 +1408,23 @@ static void open_output_file(struct stream_state *stream,
if
(
stream
->
config
.
write_webm
)
{
if
(
stream
->
config
.
write_webm
)
{
stream
->
ebml
.
stream
=
stream
->
file
;
stream
->
ebml
.
stream
=
stream
->
file
;
write_webm_file_header
(
&
stream
->
ebml
,
&
stream
->
config
.
cfg
,
write_webm_file_header
(
&
stream
->
ebml
,
cfg
,
&
global
->
framerate
,
&
global
->
framerate
,
stream
->
config
.
stereo_fmt
,
stream
->
config
.
stereo_fmt
,
global
->
codec
->
fourcc
);
global
->
codec
->
fourcc
);
}
else
}
else
{
ivf_write_file_header
(
stream
->
file
,
&
stream
->
config
.
cfg
,
ivf_write_file_header
(
stream
->
file
,
cfg
,
global
->
codec
->
fourcc
,
0
);
global
->
codec
->
fourcc
,
0
);
}
}
}
static
void
close_output_file
(
struct
stream_state
*
stream
,
static
void
close_output_file
(
struct
stream_state
*
stream
,
unsigned
int
fourcc
)
{
unsigned
int
fourcc
)
{
const
struct
vpx_codec_enc_cfg
*
const
cfg
=
&
stream
->
config
.
cfg
;
if
(
cfg
->
g_pass
==
VPX_RC_FIRST_PASS
)
return
;
if
(
stream
->
config
.
write_webm
)
{
if
(
stream
->
config
.
write_webm
)
{
write_webm_file_footer
(
&
stream
->
ebml
,
stream
->
hash
);
write_webm_file_footer
(
&
stream
->
ebml
,
stream
->
hash
);
free
(
stream
->
ebml
.
cue_list
);
free
(
stream
->
ebml
.
cue_list
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment