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
5ceffb1b
Commit
5ceffb1b
authored
Jul 15, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
matroskaenc: use ffio_fill()
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
8d9c1b32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
matroskaenc.c
libavformat/matroskaenc.c
+4
-7
No files found.
libavformat/matroskaenc.c
View file @
5ceffb1b
...
...
@@ -21,6 +21,7 @@
#include "avc.h"
#include "avformat.h"
#include "avio_internal.h"
#include "avlanguage.h"
#include "flacenc.h"
#include "internal.h"
...
...
@@ -139,8 +140,7 @@ static void put_ebml_size_unknown(AVIOContext *pb, int bytes)
{
av_assert0
(
bytes
<=
8
);
avio_w8
(
pb
,
0x1ff
>>
bytes
);
while
(
--
bytes
)
avio_w8
(
pb
,
0xff
);
ffio_fill
(
pb
,
0xff
,
bytes
-
1
);
}
/**
...
...
@@ -230,8 +230,7 @@ static void put_ebml_void(AVIOContext *pb, uint64_t size)
put_ebml_num
(
pb
,
size
-
1
,
0
);
else
put_ebml_num
(
pb
,
size
-
9
,
8
);
while
(
avio_tell
(
pb
)
<
currentpos
+
size
)
avio_w8
(
pb
,
0
);
ffio_fill
(
pb
,
0
,
currentpos
+
size
-
avio_tell
(
pb
));
}
static
ebml_master
start_ebml_master
(
AVIOContext
*
pb
,
unsigned
int
elementid
,
uint64_t
expectedsize
)
...
...
@@ -254,9 +253,7 @@ static void end_ebml_master(AVIOContext *pb, ebml_master master)
static
void
put_xiph_size
(
AVIOContext
*
pb
,
int
size
)
{
int
i
;
for
(
i
=
0
;
i
<
size
/
255
;
i
++
)
avio_w8
(
pb
,
255
);
ffio_fill
(
pb
,
255
,
size
/
255
);
avio_w8
(
pb
,
size
%
255
);
}
...
...
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