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
e377b50b
Commit
e377b50b
authored
Oct 15, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
matroskaenc: avoid implicit truncation in avio_w*
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
d0ab71ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
matroskaenc.c
libavformat/matroskaenc.c
+3
-3
No files found.
libavformat/matroskaenc.c
View file @
e377b50b
...
@@ -118,7 +118,7 @@ static void put_ebml_id(AVIOContext *pb, unsigned int id)
...
@@ -118,7 +118,7 @@ static void put_ebml_id(AVIOContext *pb, unsigned int id)
{
{
int
i
=
ebml_id_size
(
id
);
int
i
=
ebml_id_size
(
id
);
while
(
i
--
)
while
(
i
--
)
avio_w8
(
pb
,
id
>>
(
i
*
8
));
avio_w8
(
pb
,
(
uint8_t
)(
id
>>
(
i
*
8
)
));
}
}
/**
/**
...
@@ -166,7 +166,7 @@ static void put_ebml_num(AVIOContext *pb, uint64_t num, int bytes)
...
@@ -166,7 +166,7 @@ static void put_ebml_num(AVIOContext *pb, uint64_t num, int bytes)
num
|=
1ULL
<<
bytes
*
7
;
num
|=
1ULL
<<
bytes
*
7
;
for
(
i
=
bytes
-
1
;
i
>=
0
;
i
--
)
for
(
i
=
bytes
-
1
;
i
>=
0
;
i
--
)
avio_w8
(
pb
,
num
>>
i
*
8
);
avio_w8
(
pb
,
(
uint8_t
)(
num
>>
i
*
8
)
);
}
}
static
void
put_ebml_uint
(
AVIOContext
*
pb
,
unsigned
int
elementid
,
uint64_t
val
)
static
void
put_ebml_uint
(
AVIOContext
*
pb
,
unsigned
int
elementid
,
uint64_t
val
)
...
@@ -178,7 +178,7 @@ static void put_ebml_uint(AVIOContext *pb, unsigned int elementid, uint64_t val)
...
@@ -178,7 +178,7 @@ static void put_ebml_uint(AVIOContext *pb, unsigned int elementid, uint64_t val)
put_ebml_id
(
pb
,
elementid
);
put_ebml_id
(
pb
,
elementid
);
put_ebml_num
(
pb
,
bytes
,
0
);
put_ebml_num
(
pb
,
bytes
,
0
);
for
(
i
=
bytes
-
1
;
i
>=
0
;
i
--
)
for
(
i
=
bytes
-
1
;
i
>=
0
;
i
--
)
avio_w8
(
pb
,
val
>>
i
*
8
);
avio_w8
(
pb
,
(
uint8_t
)(
val
>>
i
*
8
)
);
}
}
static
void
put_ebml_float
(
AVIOContext
*
pb
,
unsigned
int
elementid
,
double
val
)
static
void
put_ebml_float
(
AVIOContext
*
pb
,
unsigned
int
elementid
,
double
val
)
...
...
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