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
24025c04
Commit
24025c04
authored
Feb 14, 2014
by
Jim Bankoski
Committed by
James Zern
Feb 15, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vp9_cx_iface vp9_dx_iface vpxdec vs warnings
Change-Id: I747982e7d1157a8b45f4034ddf207306f9f957e0
parent
6a6c4277
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
vp9/vp9_cx_iface.c
vp9/vp9_cx_iface.c
+3
-3
vp9/vp9_dx_iface.c
vp9/vp9_dx_iface.c
+2
-2
vpxdec.c
vpxdec.c
+4
-3
No files found.
vp9/vp9_cx_iface.c
View file @
24025c04
...
...
@@ -365,7 +365,7 @@ static vpx_codec_err_t set_vp9e_config(VP9_CONFIG *oxcf,
memcpy
(
oxcf
->
ts_rate_decimator
,
cfg
.
ts_rate_decimator
,
sizeof
(
cfg
.
ts_rate_decimator
));
}
else
if
(
oxcf
->
ts_number_layers
==
1
)
{
oxcf
->
ts_target_bitrate
[
0
]
=
oxcf
->
target_bandwidth
;
oxcf
->
ts_target_bitrate
[
0
]
=
(
int
)
oxcf
->
target_bandwidth
;
oxcf
->
ts_rate_decimator
[
0
]
=
1
;
}
...
...
@@ -639,7 +639,7 @@ static int write_superframe_index(vpx_codec_alg_priv_t *ctx) {
*
x
++
=
marker
;
for
(
i
=
0
;
i
<
ctx
->
pending_frame_count
;
i
++
)
{
int
this_sz
=
ctx
->
pending_frame_sizes
[
i
];
unsigned
int
this_sz
=
(
unsigned
int
)
ctx
->
pending_frame_sizes
[
i
];
for
(
j
=
0
;
j
<=
mag
;
j
++
)
{
*
x
++
=
this_sz
&
0xff
;
...
...
@@ -1049,7 +1049,7 @@ static vpx_codec_err_t vp9e_set_svc_layer_id(vpx_codec_alg_priv_t *ctx,
return
VPX_CODEC_INVALID_PARAM
;
}
if
(
cpi
->
svc
.
spatial_layer_id
<
0
||
cpi
->
svc
.
spatial_layer_id
>=
ctx
->
cfg
.
ss_number_layers
)
{
cpi
->
svc
.
spatial_layer_id
>=
(
int
)
ctx
->
cfg
.
ss_number_layers
)
{
return
VPX_CODEC_INVALID_PARAM
;
}
return
VPX_CODEC_OK
;
...
...
vp9/vp9_dx_iface.c
View file @
24025c04
...
...
@@ -214,7 +214,7 @@ static vpx_codec_err_t vp9_get_si(vpx_codec_alg_priv_t *ctx,
?
sizeof
(
vp9_stream_info_t
)
:
sizeof
(
vpx_codec_stream_info_t
);
memcpy
(
si
,
&
ctx
->
si
,
sz
);
si
->
sz
=
sz
;
si
->
sz
=
(
unsigned
int
)
sz
;
return
VPX_CODEC_OK
;
}
...
...
@@ -462,7 +462,7 @@ static vpx_codec_err_t vp9_decode(vpx_codec_alg_priv_t *ctx,
while
(
data_start
<
data_end
&&
*
data_start
==
0
)
data_start
++
;
data_sz
=
data_end
-
data_start
;
data_sz
=
(
unsigned
int
)(
data_end
-
data_start
)
;
}
while
(
data_start
<
data_end
);
return
res
;
}
...
...
vpxdec.c
View file @
24025c04
...
...
@@ -791,7 +791,8 @@ int main_loop(int argc, const char **argv_) {
vpx_usec_timer_start
(
&
timer
);
if
(
vpx_codec_decode
(
&
decoder
,
buf
,
bytes_in_buffer
,
NULL
,
0
))
{
if
(
vpx_codec_decode
(
&
decoder
,
buf
,
(
unsigned
int
)
bytes_in_buffer
,
NULL
,
0
))
{
const
char
*
detail
=
vpx_codec_error_detail
(
&
decoder
);
warn
(
"Failed to decode frame %d: %s"
,
frame_in
,
vpx_codec_error
(
&
decoder
));
...
...
@@ -873,7 +874,7 @@ int main_loop(int argc, const char **argv_) {
vpx_input_ctx
.
height
,
&
vpx_input_ctx
.
framerate
,
img
->
fmt
);
if
(
do_md5
)
{
MD5Update
(
&
md5_ctx
,
(
md5byte
*
)
buf
,
len
);
MD5Update
(
&
md5_ctx
,
(
md5byte
*
)
buf
,
(
unsigned
int
)
len
);
}
else
{
fputs
(
buf
,
outfile
);
}
...
...
@@ -882,7 +883,7 @@ int main_loop(int argc, const char **argv_) {
// Y4M frame header
len
=
y4m_write_frame_header
(
buf
,
sizeof
(
buf
));
if
(
do_md5
)
{
MD5Update
(
&
md5_ctx
,
(
md5byte
*
)
buf
,
len
);
MD5Update
(
&
md5_ctx
,
(
md5byte
*
)
buf
,
(
unsigned
int
)
len
);
}
else
{
fputs
(
buf
,
outfile
);
}
...
...
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