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
8d9ac969
Commit
8d9ac969
authored
Feb 20, 2011
by
Anton Khirnov
Committed by
Ronald S. Bultje
Feb 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avio: rename av_alloc_put_byte -> avio_alloc_context for consistency
Signed-off-by:
Ronald S. Bultje
<
rsbultje@gmail.com
>
parent
484a337c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
5 deletions
+26
-5
avidec.c
libavformat/avidec.c
+1
-1
avio.h
libavformat/avio.h
+10
-1
aviobuf.c
libavformat/aviobuf.c
+13
-1
rdt.c
libavformat/rdt.c
+1
-1
wtv.c
libavformat/wtv.c
+1
-1
No files found.
libavformat/avidec.c
View file @
8d9ac969
...
...
@@ -752,7 +752,7 @@ static int read_gab2_sub(AVStream *st, AVPacket *pkt) {
AVIStream
*
ast
=
st
->
priv_data
;
AVInputFormat
*
sub_demuxer
;
AVRational
time_base
;
AVIOContext
*
pb
=
av
_alloc_put_byte
(
pkt
->
data
+
7
,
AVIOContext
*
pb
=
av
io_alloc_context
(
pkt
->
data
+
7
,
pkt
->
size
-
7
,
0
,
NULL
,
NULL
,
NULL
,
NULL
);
AVProbeData
pd
;
...
...
libavformat/avio.h
View file @
8d9ac969
...
...
@@ -370,8 +370,17 @@ attribute_deprecated int init_put_byte(AVIOContext *s,
int
(
*
read_packet
)(
void
*
opaque
,
uint8_t
*
buf
,
int
buf_size
),
int
(
*
write_packet
)(
void
*
opaque
,
uint8_t
*
buf
,
int
buf_size
),
int64_t
(
*
seek
)(
void
*
opaque
,
int64_t
offset
,
int
whence
));
attribute_deprecated
AVIOContext
*
av_alloc_put_byte
(
unsigned
char
*
buffer
,
int
buffer_size
,
int
write_flag
,
void
*
opaque
,
int
(
*
read_packet
)(
void
*
opaque
,
uint8_t
*
buf
,
int
buf_size
),
int
(
*
write_packet
)(
void
*
opaque
,
uint8_t
*
buf
,
int
buf_size
),
int64_t
(
*
seek
)(
void
*
opaque
,
int64_t
offset
,
int
whence
));
#endif
AVIOContext
*
av_alloc_put_byte
(
AVIOContext
*
avio_alloc_context
(
unsigned
char
*
buffer
,
int
buffer_size
,
int
write_flag
,
...
...
libavformat/aviobuf.c
View file @
8d9ac969
...
...
@@ -87,9 +87,21 @@ int init_put_byte(AVIOContext *s,
return
ffio_init_context
(
s
,
buffer
,
buffer_size
,
write_flag
,
opaque
,
read_packet
,
write_packet
,
seek
);
}
AVIOContext
*
av_alloc_put_byte
(
unsigned
char
*
buffer
,
int
buffer_size
,
int
write_flag
,
void
*
opaque
,
int
(
*
read_packet
)(
void
*
opaque
,
uint8_t
*
buf
,
int
buf_size
),
int
(
*
write_packet
)(
void
*
opaque
,
uint8_t
*
buf
,
int
buf_size
),
int64_t
(
*
seek
)(
void
*
opaque
,
int64_t
offset
,
int
whence
))
{
return
avio_alloc_context
(
buffer
,
buffer_size
,
write_flag
,
opaque
,
read_packet
,
write_packet
,
seek
);
}
#endif
AVIOContext
*
av
_alloc_put_byte
(
AVIOContext
*
av
io_alloc_context
(
unsigned
char
*
buffer
,
int
buffer_size
,
int
write_flag
,
...
...
libavformat/rdt.c
View file @
8d9ac969
...
...
@@ -311,7 +311,7 @@ rdt_parse_packet (AVFormatContext *ctx, PayloadContext *rdt, AVStream *st,
if
(
res
>
0
)
{
if
(
st
->
codec
->
codec_id
==
CODEC_ID_AAC
)
{
memcpy
(
rdt
->
buffer
,
buf
+
pos
,
len
-
pos
);
rdt
->
rmctx
->
pb
=
av
_alloc_put_byte
(
rdt
->
buffer
,
len
-
pos
,
0
,
rdt
->
rmctx
->
pb
=
av
io_alloc_context
(
rdt
->
buffer
,
len
-
pos
,
0
,
NULL
,
NULL
,
NULL
,
NULL
);
}
goto
get_cache
;
...
...
libavformat/wtv.c
View file @
8d9ac969
...
...
@@ -236,7 +236,7 @@ static AVIOContext * wtvfile_open_sector(int first_sector, uint64_t length, int
return
NULL
;
}
pb
=
av
_alloc_put_byte
(
buffer
,
1
<<
wf
->
sector_bits
,
0
,
wf
,
pb
=
av
io_alloc_context
(
buffer
,
1
<<
wf
->
sector_bits
,
0
,
wf
,
wtvfile_read_packet
,
NULL
,
wtvfile_seek
);
if
(
!
pb
)
{
av_free
(
buffer
);
...
...
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