Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
5487560a
Commit
5487560a
authored
Dec 03, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/dnxhddec: use init_get_bits8()
parent
be17a82f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
dnxhddec.c
libavcodec/dnxhddec.c
+6
-2
No files found.
libavcodec/dnxhddec.c
View file @
5487560a
...
...
@@ -589,12 +589,16 @@ static int dnxhd_decode_row(AVCodecContext *avctx, void *data,
const
DNXHDContext
*
ctx
=
avctx
->
priv_data
;
uint32_t
offset
=
ctx
->
mb_scan_index
[
rownb
];
RowContext
*
row
=
ctx
->
rows
+
threadnb
;
int
x
;
int
x
,
ret
;
row
->
last_dc
[
0
]
=
row
->
last_dc
[
1
]
=
row
->
last_dc
[
2
]
=
1
<<
(
ctx
->
bit_depth
+
2
);
// for levels +2^(bitdepth-1)
init_get_bits
(
&
row
->
gb
,
ctx
->
buf
+
offset
,
(
ctx
->
buf_size
-
offset
)
<<
3
);
ret
=
init_get_bits8
(
&
row
->
gb
,
ctx
->
buf
+
offset
,
ctx
->
buf_size
-
offset
);
if
(
ret
<
0
)
{
row
->
errors
++
;
return
ret
;
}
for
(
x
=
0
;
x
<
ctx
->
mb_width
;
x
++
)
{
//START_TIMER;
int
ret
=
dnxhd_decode_macroblock
(
ctx
,
row
,
data
,
x
,
rownb
);
...
...
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