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
d459d8e2
Commit
d459d8e2
authored
Apr 07, 2011
by
Reimar Döffinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Abort Ogg header parsing when we encounter a data packet.
Fixes ticket #15.
parent
ae7a4a15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
oggdec.c
libavformat/oggdec.c
+1
-4
No files found.
libavformat/oggdec.c
View file @
d459d8e2
...
...
@@ -376,8 +376,7 @@ ogg_packet (AVFormatContext * s, int *str, int *dstart, int *dsize, int64_t *fpo
// We have reached the first non-header packet in this stream.
// Unfortunately more header packets may still follow for others,
// so we reset this later unless we are done with the headers
// for all streams.
// but if we continue with header parsing we may lose data packets.
ogg
->
headers
=
1
;
// Update the header state for all streams and
...
...
@@ -386,8 +385,6 @@ ogg_packet (AVFormatContext * s, int *str, int *dstart, int *dsize, int64_t *fpo
s
->
data_offset
=
os
->
sync_pos
;
for
(
i
=
0
;
i
<
ogg
->
nstreams
;
i
++
)
{
struct
ogg_stream
*
cur_os
=
ogg
->
streams
+
i
;
if
(
cur_os
->
header
>
0
)
ogg
->
headers
=
0
;
// if we have a partial non-header packet, its start is
// obviously at or after the data start
...
...
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