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
0ac8e2bf
Commit
0ac8e2bf
authored
Feb 21, 2011
by
Anton Khirnov
Committed by
Ronald S. Bultje
Feb 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avio: make put_nbyte internal.
Signed-off-by:
Ronald S. Bultje
<
rsbultje@gmail.com
>
parent
77eb5504
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
avio.h
libavformat/avio.h
+1
-1
avio_internal.h
libavformat/avio_internal.h
+2
-0
aviobuf.c
libavformat/aviobuf.c
+5
-1
spdifenc.c
libavformat/spdifenc.c
+1
-1
No files found.
libavformat/avio.h
View file @
0ac8e2bf
...
...
@@ -397,6 +397,7 @@ attribute_deprecated unsigned int get_be32(AVIOContext *s);
attribute_deprecated
uint64_t
get_be64
(
AVIOContext
*
s
);
attribute_deprecated
void
put_byte
(
AVIOContext
*
s
,
int
b
);
attribute_deprecated
void
put_nbyte
(
AVIOContext
*
s
,
int
b
,
int
count
);
attribute_deprecated
void
put_buffer
(
AVIOContext
*
s
,
const
unsigned
char
*
buf
,
int
size
);
attribute_deprecated
void
put_le64
(
AVIOContext
*
s
,
uint64_t
val
);
attribute_deprecated
void
put_be64
(
AVIOContext
*
s
,
uint64_t
val
);
...
...
@@ -421,7 +422,6 @@ AVIOContext *avio_alloc_context(
int64_t
(
*
seek
)(
void
*
opaque
,
int64_t
offset
,
int
whence
));
void
avio_w8
(
AVIOContext
*
s
,
int
b
);
void
put_nbyte
(
AVIOContext
*
s
,
int
b
,
int
count
);
void
avio_write
(
AVIOContext
*
s
,
const
unsigned
char
*
buf
,
int
size
);
void
avio_wl64
(
AVIOContext
*
s
,
uint64_t
val
);
void
avio_wb64
(
AVIOContext
*
s
,
uint64_t
val
);
...
...
libavformat/avio_internal.h
View file @
0ac8e2bf
...
...
@@ -40,4 +40,6 @@ int ffio_init_context(AVIOContext *s,
*/
int
ffio_read_partial
(
AVIOContext
*
s
,
unsigned
char
*
buf
,
int
size
);
void
ffio_fill
(
AVIOContext
*
s
,
int
b
,
int
count
);
#endif // AVFORMAT_AVIO_INTERNAL_H
libavformat/aviobuf.c
View file @
0ac8e2bf
...
...
@@ -141,7 +141,7 @@ void avio_w8(AVIOContext *s, int b)
flush_buffer
(
s
);
}
void
put_nbyte
(
AVIOContext
*
s
,
int
b
,
int
count
)
void
ffio_fill
(
AVIOContext
*
s
,
int
b
,
int
count
)
{
while
(
count
>
0
)
{
int
len
=
FFMIN
(
s
->
buf_end
-
s
->
buf_ptr
,
count
);
...
...
@@ -352,6 +352,10 @@ void put_buffer(AVIOContext *s, const unsigned char *buf, int size)
{
avio_write
(
s
,
buf
,
size
);
}
void
put_nbyte
(
AVIOContext
*
s
,
int
b
,
int
count
)
{
ffio_fill
(
s
,
b
,
count
);
}
#endif
int
avio_put_str
(
AVIOContext
*
s
,
const
char
*
str
)
...
...
libavformat/spdifenc.c
View file @
0ac8e2bf
...
...
@@ -525,7 +525,7 @@ static int spdif_write_packet(struct AVFormatContext *s, AVPacket *pkt)
if
(
ctx
->
out_bytes
&
1
)
spdif_put_16
(
ctx
,
s
->
pb
,
ctx
->
out_buf
[
ctx
->
out_bytes
-
1
]
<<
8
);
put_nbyte
(
s
->
pb
,
0
,
padding
);
ffio_fill
(
s
->
pb
,
0
,
padding
);
av_log
(
s
,
AV_LOG_DEBUG
,
"type=%x len=%i pkt_offset=%i
\n
"
,
ctx
->
data_type
,
ctx
->
out_bytes
,
ctx
->
pkt_offset
);
...
...
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