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
895345da
Commit
895345da
authored
Jan 19, 2005
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
svq3_get_se_golomb() fix
Originally committed as revision 3849 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
61f040dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
golomb.h
libavcodec/golomb.h
+5
-2
No files found.
libavcodec/golomb.h
View file @
895345da
...
...
@@ -167,7 +167,10 @@ static inline int svq3_get_se_golomb(GetBitContext *gb){
return
ff_interleaved_se_golomb_vlc_code
[
buf
];
}
else
{
buf
|=
1
;
LAST_SKIP_BITS
(
re
,
gb
,
8
);
UPDATE_CACHE
(
re
,
gb
);
buf
|=
1
|
(
GET_CACHE
(
re
,
gb
)
>>
8
);
if
((
buf
&
0xAAAAAAAA
)
==
0
)
return
INVALID_VLC
;
...
...
@@ -175,7 +178,7 @@ static inline int svq3_get_se_golomb(GetBitContext *gb){
buf
=
(
buf
<<
2
)
-
((
buf
<<
log
)
>>
(
log
-
1
))
+
(
buf
>>
30
);
}
LAST_SKIP_BITS
(
re
,
gb
,
63
-
2
*
log
);
LAST_SKIP_BITS
(
re
,
gb
,
63
-
2
*
log
-
8
);
CLOSE_READER
(
re
,
gb
);
return
(
signed
)
(((((
buf
<<
log
)
>>
log
)
-
1
)
^
-
(
buf
&
0x1
))
+
1
)
>>
1
;
...
...
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