Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guillaume Martres
aom-rav1e
Commits
339391a8
Commit
339391a8
authored
Aug 21, 2014
by
Jim Bankoski
Committed by
Gerrit Code Review
Aug 21, 2014
Browse files
vpx_temporal_svc_encoder: initialize outfile to avoid warning
Change-Id: I53077092342bc35fd783e1b7dcb80b21677f11c1
parent
116aa2db
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/vpx_temporal_svc_encoder.c
View file @
339391a8
...
...
@@ -12,6 +12,7 @@
// encoding scheme based on temporal scalability for video applications
// that benefit from a scalable bitstream.
#include
<assert.h>
#include
<math.h>
#include
<stdio.h>
#include
<stdlib.h>
...
...
@@ -438,7 +439,7 @@ static void set_temporal_layer_pattern(int layering_mode,
}
int
main
(
int
argc
,
char
**
argv
)
{
VpxVideoWriter
*
outfile
[
VPX_TS_MAX_LAYERS
];
VpxVideoWriter
*
outfile
[
VPX_TS_MAX_LAYERS
]
=
{
NULL
}
;
vpx_codec_ctx_t
codec
;
vpx_codec_enc_cfg_t
cfg
;
int
frame_cnt
=
0
;
...
...
@@ -569,6 +570,8 @@ int main(int argc, char **argv) {
outfile
[
i
]
=
vpx_video_writer_open
(
file_name
,
kContainerIVF
,
&
info
);
if
(
!
outfile
[
i
])
die
(
"Failed to open %s for writing"
,
file_name
);
assert
(
outfile
[
i
]
!=
NULL
);
}
// No spatial layers in this encoder.
cfg
.
ss_number_layers
=
1
;
...
...
Write
Preview
Supports
Markdown
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