Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
d9dd7a0d
Commit
d9dd7a0d
authored
Jul 23, 2005
by
Michael Niedermayer
Browse files
minor user data reading bugfix
Originally committed as revision 4467 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
f2d9a9f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
libavcodec/h263.c
libavcodec/h263.c
+4
-6
No files found.
libavcodec/h263.c
View file @
d9dd7a0d
...
...
@@ -5742,13 +5742,11 @@ static int decode_user_data(MpegEncContext *s, GetBitContext *gb){
int
ver
,
build
,
ver2
,
ver3
;
char
last
;
buf
[
0
]
=
show_bits
(
gb
,
8
);
for
(
i
=
1
;
i
<
256
;
i
++
){
buf
[
i
]
=
show_bits
(
gb
,
16
)
&
0xFF
;
if
(
buf
[
i
]
==
0
)
break
;
skip_bits
(
gb
,
8
);
for
(
i
=
0
;
i
<
255
;
i
++
){
if
(
show_bits
(
gb
,
23
)
==
0
)
break
;
buf
[
i
]
=
get_bits
(
gb
,
8
);
}
buf
[
255
]
=
0
;
buf
[
i
]
=
0
;
/* divx detection */
e
=
sscanf
(
buf
,
"DivX%dBuild%d%c"
,
&
ver
,
&
build
,
&
last
);
...
...
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