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
95126728
Commit
95126728
authored
Jul 15, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mxfenc: use ffio_fill()
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
69383d05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
mxfenc.c
libavformat/mxfenc.c
+4
-6
No files found.
libavformat/mxfenc.c
View file @
95126728
...
...
@@ -42,6 +42,7 @@
#include "libavcodec/dnxhddata.h"
#include "audiointerleave.h"
#include "avformat.h"
#include "avio_internal.h"
#include "internal.h"
#include "mxf.h"
#include "config.h"
...
...
@@ -1294,8 +1295,7 @@ static void mxf_write_klv_fill(AVFormatContext *s)
avio_write
(
s
->
pb
,
klv_fill_key
,
16
);
pad
-=
16
+
4
;
klv_encode_ber4_length
(
s
->
pb
,
pad
);
for
(;
pad
;
pad
--
)
avio_w8
(
s
->
pb
,
0
);
ffio_fill
(
s
->
pb
,
0
,
pad
);
av_assert1
(
!
(
avio_tell
(
s
->
pb
)
&
(
KAG_SIZE
-
1
)));
}
}
...
...
@@ -1870,13 +1870,11 @@ static void mxf_write_d10_video_packet(AVFormatContext *s, AVStream *st, AVPacke
avio_write
(
s
->
pb
,
klv_fill_key
,
16
);
pad
-=
16
+
4
;
klv_encode_ber4_length
(
s
->
pb
,
pad
);
for
(;
pad
;
pad
--
)
avio_w8
(
s
->
pb
,
0
);
ffio_fill
(
s
->
pb
,
0
,
pad
);
av_assert1
(
!
(
avio_tell
(
s
->
pb
)
&
(
KAG_SIZE
-
1
)));
}
else
{
av_log
(
s
,
AV_LOG_WARNING
,
"cannot fill d-10 video packet
\n
"
);
for
(;
pad
>
0
;
pad
--
)
avio_w8
(
s
->
pb
,
0
);
ffio_fill
(
s
->
pb
,
0
,
pad
);
}
}
...
...
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