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
94ef6864
Commit
94ef6864
authored
Jul 24, 2002
by
Fabrice Bellard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
suppressed packet size dependancy
Originally committed as revision 798 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
0e2a2197
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
14 deletions
+6
-14
au.c
libav/au.c
+4
-8
wav.c
libav/wav.c
+2
-6
No files found.
libav/au.c
View file @
94ef6864
...
...
@@ -159,17 +159,13 @@ static int au_read_header(AVFormatContext *s,
#define MAX_SIZE 4096
static
int
au_read_packet
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
AVPacket
*
pkt
)
{
int
packet_size
,
n
,
ret
;
int
ret
;
if
(
url_feof
(
&
s
->
pb
))
return
-
EIO
;
packet_size
=
url_get_packet_size
(
&
s
->
pb
);
n
=
MAX_SIZE
/
packet_size
;
if
(
n
<=
0
)
return
n
=
1
;
if
(
av_new_packet
(
pkt
,
n
*
packet_size
))
if
(
av_new_packet
(
pkt
,
MAX_SIZE
))
return
-
EIO
;
pkt
->
stream_index
=
0
;
...
...
@@ -179,7 +175,7 @@ static int au_read_packet(AVFormatContext *s,
/* note: we need to modify the packet size here to handle the last
packet */
pkt
->
size
=
ret
;
return
ret
;
return
0
;
}
static
int
au_read_close
(
AVFormatContext
*
s
)
...
...
libav/wav.c
View file @
94ef6864
...
...
@@ -267,15 +267,11 @@ static int wav_read_header(AVFormatContext *s,
static
int
wav_read_packet
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
{
int
packet_size
,
n
,
ret
;
int
ret
;
if
(
url_feof
(
&
s
->
pb
))
return
-
EIO
;
packet_size
=
url_get_packet_size
(
&
s
->
pb
);
n
=
MAX_SIZE
/
packet_size
;
if
(
n
<=
0
)
return
n
=
1
;
if
(
av_new_packet
(
pkt
,
n
*
packet_size
))
if
(
av_new_packet
(
pkt
,
MAX_SIZE
))
return
-
EIO
;
pkt
->
stream_index
=
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