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
8a515d2d
Commit
8a515d2d
authored
Aug 16, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get_bits(32) fix
Originally committed as revision 3393 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
6d45cb72
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
mjpeg.c
libavcodec/mjpeg.c
+7
-7
vp3.c
libavcodec/vp3.c
+3
-3
No files found.
libavcodec/mjpeg.c
View file @
8a515d2d
...
...
@@ -1915,21 +1915,21 @@ read_header:
skip_bits
(
&
hgb
,
32
);
/* reserved zeros */
if
(
get_bits
(
&
hgb
,
32
)
!=
be2me_32
(
ff_get_fourcc
(
"mjpg"
)))
if
(
get_bits
_long
(
&
hgb
,
32
)
!=
be2me_32
(
ff_get_fourcc
(
"mjpg"
)))
{
dprintf
(
"not mjpeg-b (bad fourcc)
\n
"
);
return
0
;
}
field_size
=
get_bits
(
&
hgb
,
32
);
/* field size */
field_size
=
get_bits
_long
(
&
hgb
,
32
);
/* field size */
dprintf
(
"field size: 0x%x
\n
"
,
field_size
);
skip_bits
(
&
hgb
,
32
);
/* padded field size */
second_field_offs
=
get_bits
(
&
hgb
,
32
);
second_field_offs
=
get_bits
_long
(
&
hgb
,
32
);
dprintf
(
"second field offs: 0x%x
\n
"
,
second_field_offs
);
if
(
second_field_offs
)
s
->
interlaced
=
1
;
dqt_offs
=
get_bits
(
&
hgb
,
32
);
dqt_offs
=
get_bits
_long
(
&
hgb
,
32
);
dprintf
(
"dqt offs: 0x%x
\n
"
,
dqt_offs
);
if
(
dqt_offs
)
{
...
...
@@ -1938,7 +1938,7 @@ read_header:
mjpeg_decode_dqt
(
s
);
}
dht_offs
=
get_bits
(
&
hgb
,
32
);
dht_offs
=
get_bits
_long
(
&
hgb
,
32
);
dprintf
(
"dht offs: 0x%x
\n
"
,
dht_offs
);
if
(
dht_offs
)
{
...
...
@@ -1947,7 +1947,7 @@ read_header:
mjpeg_decode_dht
(
s
);
}
sof_offs
=
get_bits
(
&
hgb
,
32
);
sof_offs
=
get_bits
_long
(
&
hgb
,
32
);
dprintf
(
"sof offs: 0x%x
\n
"
,
sof_offs
);
if
(
sof_offs
)
{
...
...
@@ -1957,7 +1957,7 @@ read_header:
return
-
1
;
}
sos_offs
=
get_bits
(
&
hgb
,
32
);
sos_offs
=
get_bits
_long
(
&
hgb
,
32
);
dprintf
(
"sos offs: 0x%x
\n
"
,
sos_offs
);
if
(
sos_offs
)
{
...
...
libavcodec/vp3.c
View file @
8a515d2d
...
...
@@ -2719,16 +2719,16 @@ static int theora_decode_comments(AVCodecContext *avctx, GetBitContext gb)
{
int
nb_comments
,
i
,
tmp
;
tmp
=
get_bits
(
&
gb
,
32
);
tmp
=
get_bits
_long
(
&
gb
,
32
);
tmp
=
be2me_32
(
tmp
);
while
(
tmp
--
)
skip_bits
(
&
gb
,
8
);
nb_comments
=
get_bits
(
&
gb
,
32
);
nb_comments
=
get_bits
_long
(
&
gb
,
32
);
nb_comments
=
be2me_32
(
nb_comments
);
for
(
i
=
0
;
i
<
nb_comments
;
i
++
)
{
tmp
=
get_bits
(
&
gb
,
32
);
tmp
=
get_bits
_long
(
&
gb
,
32
);
tmp
=
be2me_32
(
tmp
);
while
(
tmp
--
)
skip_bits
(
&
gb
,
8
);
...
...
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