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
347b375a
Commit
347b375a
authored
Apr 08, 2011
by
Alex Converse
Committed by
Alex Converse
Apr 10, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
daud: Don't write packets that are too large to have their size expressed in the bytestream.
parent
cf39b461
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
daud.c
libavformat/daud.c
+5
-0
No files found.
libavformat/daud.c
View file @
347b375a
...
@@ -57,6 +57,11 @@ static int daud_write_header(struct AVFormatContext *s)
...
@@ -57,6 +57,11 @@ static int daud_write_header(struct AVFormatContext *s)
static
int
daud_write_packet
(
struct
AVFormatContext
*
s
,
AVPacket
*
pkt
)
static
int
daud_write_packet
(
struct
AVFormatContext
*
s
,
AVPacket
*
pkt
)
{
{
if
(
pkt
->
size
>
65535
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"Packet size too large for s302m. (%d > 65535)
\n
"
,
pkt
->
size
);
return
-
1
;
}
avio_wb16
(
s
->
pb
,
pkt
->
size
);
avio_wb16
(
s
->
pb
,
pkt
->
size
);
avio_wb16
(
s
->
pb
,
0x8010
);
// unknown
avio_wb16
(
s
->
pb
,
0x8010
);
// unknown
avio_write
(
s
->
pb
,
pkt
->
data
,
pkt
->
size
);
avio_write
(
s
->
pb
,
pkt
->
data
,
pkt
->
size
);
...
...
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