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
d50122ea
Commit
d50122ea
authored
Nov 17, 2011
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not try to read total disc or track number if data atom is too short.
Fixes ticket #659.
parent
7cdfce4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
mov.c
libavformat/mov.c
+3
-2
No files found.
libavformat/mov.c
View file @
d50122ea
...
@@ -87,10 +87,11 @@ static int mov_metadata_track_or_disc_number(MOVContext *c, AVIOContext *pb,
...
@@ -87,10 +87,11 @@ static int mov_metadata_track_or_disc_number(MOVContext *c, AVIOContext *pb,
{
{
char
buf
[
16
];
char
buf
[
16
];
short
current
,
total
;
short
current
,
total
=
0
;
avio_rb16
(
pb
);
// unknown
avio_rb16
(
pb
);
// unknown
current
=
avio_rb16
(
pb
);
current
=
avio_rb16
(
pb
);
total
=
avio_rb16
(
pb
);
if
(
len
>=
6
)
total
=
avio_rb16
(
pb
);
if
(
!
total
)
if
(
!
total
)
snprintf
(
buf
,
sizeof
(
buf
),
"%d"
,
current
);
snprintf
(
buf
,
sizeof
(
buf
),
"%d"
,
current
);
else
else
...
...
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