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
b7616f57
Commit
b7616f57
authored
Aug 03, 2014
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
huffyuv: Eliminate some pointless casts
parent
c065f4a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
huffyuvdec.c
libavcodec/huffyuvdec.c
+6
-6
No files found.
libavcodec/huffyuvdec.c
View file @
b7616f57
...
...
@@ -263,17 +263,17 @@ static av_cold int decode_init(AVCodecContext *avctx)
if
(
avctx
->
extradata_size
<
4
)
return
-
1
;
method
=
((
uint8_t
*
)
avctx
->
extradata
)
[
0
];
method
=
avctx
->
extradata
[
0
];
s
->
decorrelate
=
method
&
64
?
1
:
0
;
s
->
predictor
=
method
&
63
;
s
->
bitstream_bpp
=
((
uint8_t
*
)
avctx
->
extradata
)
[
1
];
s
->
bitstream_bpp
=
avctx
->
extradata
[
1
];
if
(
s
->
bitstream_bpp
==
0
)
s
->
bitstream_bpp
=
avctx
->
bits_per_coded_sample
&
~
7
;
interlace
=
(
((
uint8_t
*
)
avctx
->
extradata
)
[
2
]
&
0x30
)
>>
4
;
interlace
=
(
avctx
->
extradata
[
2
]
&
0x30
)
>>
4
;
s
->
interlaced
=
(
interlace
==
1
)
?
1
:
(
interlace
==
2
)
?
0
:
s
->
interlaced
;
s
->
context
=
((
uint8_t
*
)
avctx
->
extradata
)
[
2
]
&
0x40
?
1
:
0
;
s
->
context
=
avctx
->
extradata
[
2
]
&
0x40
?
1
:
0
;
if
(
read_huffman_tables
(
s
,
((
uint8_t
*
)
avctx
->
extradata
)
+
4
,
if
(
read_huffman_tables
(
s
,
avctx
->
extradata
+
4
,
avctx
->
extradata_size
-
4
)
<
0
)
return
-
1
;
}
else
{
...
...
@@ -343,7 +343,7 @@ static av_cold int decode_init_thread_copy(AVCodecContext *avctx)
s
->
vlc
[
i
].
table
=
NULL
;
if
(
s
->
version
==
2
)
{
if
(
read_huffman_tables
(
s
,
((
uint8_t
*
)
avctx
->
extradata
)
+
4
,
if
(
read_huffman_tables
(
s
,
avctx
->
extradata
+
4
,
avctx
->
extradata_size
)
<
0
)
return
-
1
;
}
else
{
...
...
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