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
fe7a37c3
Commit
fe7a37c3
authored
May 19, 2012
by
Kostya Shishkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indeo: check custom Huffman tables for errors
parent
aa372cf4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
ivi_common.c
libavcodec/ivi_common.c
+6
-1
No files found.
libavcodec/ivi_common.c
View file @
fe7a37c3
...
...
@@ -123,6 +123,10 @@ int ff_ivi_dec_huff_desc(GetBitContext *gb, int desc_coded, int which_tab,
if
(
huff_tab
->
tab_sel
==
7
)
{
/* custom huffman table (explicitly encoded) */
new_huff
.
num_rows
=
get_bits
(
gb
,
4
);
if
(
!
new_huff
.
num_rows
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Empty custom Huffman table!
\n
"
);
return
AVERROR_INVALIDDATA
;
}
for
(
i
=
0
;
i
<
new_huff
.
num_rows
;
i
++
)
new_huff
.
xbits
[
i
]
=
get_bits
(
gb
,
4
);
...
...
@@ -136,9 +140,10 @@ int ff_ivi_dec_huff_desc(GetBitContext *gb, int desc_coded, int which_tab,
result
=
ff_ivi_create_huff_from_desc
(
&
huff_tab
->
cust_desc
,
&
huff_tab
->
cust_tab
,
0
);
if
(
result
)
{
huff_tab
->
cust_desc
.
num_rows
=
0
;
// reset faulty description
av_log
(
avctx
,
AV_LOG_ERROR
,
"Error while initializing custom vlc table!
\n
"
);
return
-
1
;
return
result
;
}
}
huff_tab
->
tab
=
&
huff_tab
->
cust_tab
;
...
...
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