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
8ba987bf
Commit
8ba987bf
authored
Sep 08, 2011
by
Yan Jing
Committed by
Michael Niedermayer
Sep 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmdec: set avio buffer to ffm->packet_size, avoid dirty reads
parent
0b99e858
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
ffmdec.c
libavformat/ffmdec.c
+5
-0
No files found.
libavformat/ffmdec.c
View file @
8ba987bf
...
@@ -121,6 +121,11 @@ static int ffm_read_data(AVFormatContext *s,
...
@@ -121,6 +121,11 @@ static int ffm_read_data(AVFormatContext *s,
if
(
avio_tell
(
pb
)
==
ffm
->
file_size
)
if
(
avio_tell
(
pb
)
==
ffm
->
file_size
)
avio_seek
(
pb
,
ffm
->
packet_size
,
SEEK_SET
);
avio_seek
(
pb
,
ffm
->
packet_size
,
SEEK_SET
);
retry_read:
retry_read:
if
(
pb
->
buffer_size
!=
ffm
->
packet_size
)
{
int64_t
tell
=
avio_tell
(
pb
);
url_setbufsize
(
pb
,
ffm
->
packet_size
);
avio_seek
(
pb
,
tell
,
SEEK_SET
);
}
id
=
avio_rb16
(
pb
);
/* PACKET_ID */
id
=
avio_rb16
(
pb
);
/* PACKET_ID */
if
(
id
!=
PACKET_ID
)
if
(
id
!=
PACKET_ID
)
if
(
ffm_resync
(
s
,
id
)
<
0
)
if
(
ffm_resync
(
s
,
id
)
<
0
)
...
...
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