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
d31fb1a9
Commit
d31fb1a9
authored
Oct 29, 2011
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
matroskadec: empty blocks are in fact valid.
parent
23a8b4dd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
matroskadec.c
libavformat/matroskadec.c
+3
-2
No files found.
libavformat/matroskadec.c
View file @
d31fb1a9
...
@@ -1679,11 +1679,12 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data,
...
@@ -1679,11 +1679,12 @@ static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data,
size
-=
n
;
size
-=
n
;
track
=
matroska_find_track_by_num
(
matroska
,
num
);
track
=
matroska_find_track_by_num
(
matroska
,
num
);
if
(
size
<=
3
||
!
track
||
!
track
->
stream
)
{
if
(
!
track
||
!
track
->
stream
)
{
av_log
(
matroska
->
ctx
,
AV_LOG_INFO
,
av_log
(
matroska
->
ctx
,
AV_LOG_INFO
,
"Invalid stream %"
PRIu64
" or size %u
\n
"
,
num
,
size
);
"Invalid stream %"
PRIu64
" or size %u
\n
"
,
num
,
size
);
return
AVERROR_INVALIDDATA
;
return
AVERROR_INVALIDDATA
;
}
}
else
if
(
size
<=
3
)
return
0
;
st
=
track
->
stream
;
st
=
track
->
stream
;
if
(
st
->
discard
>=
AVDISCARD_ALL
)
if
(
st
->
discard
>=
AVDISCARD_ALL
)
return
res
;
return
res
;
...
...
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