Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
libvpx
Commits
3ec56639
Commit
3ec56639
authored
Nov 12, 2012
by
Ronald S. Bultje
Committed by
Gerrit Code Review
Nov 12, 2012
Browse files
Merge "Fix frame number on which the mismatch is reported in vpxenc." into experimental
parents
3a08b033
195172cf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
vpxenc.c
vpxenc.c
+4
-4
No files found.
vpxenc.c
View file @
3ec56639
...
...
@@ -2240,7 +2240,7 @@ float usec_to_fps(uint64_t usec, unsigned int frames) {
}
static
void
test_decode
(
struct
stream_state
*
stream
,
unsigned
int
frames_in
)
{
static
void
test_decode
(
struct
stream_state
*
stream
)
{
vpx_codec_control
(
&
stream
->
encoder
,
VP8_COPY_REFERENCE
,
&
stream
->
ref_enc
);
ctx_exit_on_error
(
&
stream
->
encoder
,
"Failed to get encoder reference frame"
);
vpx_codec_control
(
&
stream
->
decoder
,
VP8_COPY_REFERENCE
,
&
stream
->
ref_dec
);
...
...
@@ -2250,8 +2250,8 @@ static void test_decode(struct stream_state *stream, unsigned int frames_in) {
&&
!
compare_img
(
&
stream
->
ref_enc
.
img
,
&
stream
->
ref_dec
.
img
))
{
/* TODO(jkoleszar): make fatal. */
warn
(
"Stream %d: Encode/decode mismatch on frame %d"
,
stream
->
index
,
frames_
in
);
stream
->
mismatch_seen
=
frames_
in
;
stream
->
index
,
stream
->
frames_
out
);
stream
->
mismatch_seen
=
stream
->
frames_
out
;
}
}
...
...
@@ -2419,7 +2419,7 @@ int main(int argc, const char **argv_) {
FOREACH_STREAM
(
get_cx_data
(
stream
,
&
global
,
&
got_data
));
if
(
got_data
&&
global
.
test_decode
)
FOREACH_STREAM
(
test_decode
(
stream
,
frames_in
));
FOREACH_STREAM
(
test_decode
(
stream
));
}
fflush
(
stdout
);
...
...
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