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
c9b5489c
Commit
c9b5489c
authored
Jun 02, 2002
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing get_bits_count at the end
Originally committed as revision 638 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
7fd08ac1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
common.c
libavcodec/common.c
+8
-3
No files found.
libavcodec/common.c
View file @
c9b5489c
...
...
@@ -174,6 +174,9 @@ unsigned int get_bits_long(GetBitContext *s, int n)
(
buf_ptr
[
-
2
]
<<
8
)
|
(
buf_ptr
[
-
1
]);
#endif
val
|=
bit_buf
>>
(
32
+
bit_cnt
);
bit_buf
<<=
-
bit_cnt
;
bit_cnt
+=
32
;
}
else
{
buf_ptr
-=
4
;
bit_buf
=
0
;
...
...
@@ -185,11 +188,13 @@ unsigned int get_bits_long(GetBitContext *s, int n)
bit_buf
|=
*
buf_ptr
++
<<
8
;
if
(
buf_ptr
<
s
->
buf_end
)
bit_buf
|=
*
buf_ptr
++
;
}
s
->
buf_ptr
=
buf_ptr
;
val
|=
bit_buf
>>
(
32
+
bit_cnt
);
bit_buf
<<=
-
bit_cnt
;
bit_cnt
+=
32
;
bit_cnt
+=
8
*
(
buf_ptr
-
s
->
buf_ptr
);
if
(
bit_cnt
<
0
)
bit_cnt
=
0
;
}
s
->
buf_ptr
=
buf_ptr
;
}
s
->
bit_buf
=
bit_buf
;
s
->
bit_cnt
=
bit_cnt
;
...
...
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