Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
c5cc9498
Commit
c5cc9498
authored
Jul 13, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
matroskaenc: switch to av_assert
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
1cef5a01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
matroskaenc.c
libavformat/matroskaenc.c
+4
-4
No files found.
libavformat/matroskaenc.c
View file @
c5cc9498
...
...
@@ -128,7 +128,7 @@ static void put_ebml_id(AVIOContext *pb, unsigned int id)
*/
static
void
put_ebml_size_unknown
(
AVIOContext
*
pb
,
int
bytes
)
{
a
ssert
(
bytes
<=
8
);
a
v_assert0
(
bytes
<=
8
);
avio_w8
(
pb
,
0x1ff
>>
bytes
);
while
(
--
bytes
)
avio_w8
(
pb
,
0xff
);
...
...
@@ -155,14 +155,14 @@ static void put_ebml_num(AVIOContext *pb, uint64_t num, int bytes)
int
i
,
needed_bytes
=
ebml_num_size
(
num
);
// sizes larger than this are currently undefined in EBML
a
ssert
(
num
<
(
1ULL
<<
56
)
-
1
);
a
v_assert0
(
num
<
(
1ULL
<<
56
)
-
1
);
if
(
bytes
==
0
)
// don't care how many bytes are used, so use the min
bytes
=
needed_bytes
;
// the bytes needed to write the given size would exceed the bytes
// that we need to use, so write unknown size. This shouldn't happen.
a
ssert
(
bytes
>=
needed_bytes
);
a
v_assert0
(
bytes
>=
needed_bytes
);
num
|=
1ULL
<<
bytes
*
7
;
for
(
i
=
bytes
-
1
;
i
>=
0
;
i
--
)
...
...
@@ -211,7 +211,7 @@ static void put_ebml_void(AVIOContext *pb, uint64_t size)
{
int64_t
currentpos
=
avio_tell
(
pb
);
a
ssert
(
size
>=
2
);
a
v_assert0
(
size
>=
2
);
put_ebml_id
(
pb
,
EBML_ID_VOID
);
// we need to subtract the length needed to store the size from the
...
...
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