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
e3323a1c
Commit
e3323a1c
authored
Apr 24, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some passing argument from incompatible pointer type warnings.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
47ec6546
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
avio.c
libavformat/avio.c
+1
-1
aviobuf.c
libavformat/aviobuf.c
+1
-1
mpegenc.c
libavformat/mpegenc.c
+1
-1
swfenc.c
libavformat/swfenc.c
+1
-1
No files found.
libavformat/avio.c
View file @
e3323a1c
...
...
@@ -307,7 +307,7 @@ int ffurl_write(URLContext *h, const unsigned char *buf, int size)
if
(
h
->
max_packet_size
&&
size
>
h
->
max_packet_size
)
return
AVERROR
(
EIO
);
return
retry_transfer_wrapper
(
h
,
buf
,
size
,
size
,
h
->
prot
->
url_write
);
return
retry_transfer_wrapper
(
h
,
buf
,
size
,
size
,
(
void
*
)
h
->
prot
->
url_write
);
}
int64_t
ffurl_seek
(
URLContext
*
h
,
int64_t
pos
,
int
whence
)
...
...
libavformat/aviobuf.c
View file @
e3323a1c
...
...
@@ -853,7 +853,7 @@ int ffio_fdopen(AVIOContext **s, URLContext *h)
if
(
ffio_init_context
(
*
s
,
buffer
,
buffer_size
,
h
->
flags
&
AVIO_FLAG_WRITE
,
h
,
ffurl_read
,
ffurl_write
,
ffurl_seek
)
<
0
)
{
(
void
*
)
ffurl_read
,
(
void
*
)
ffurl_write
,
(
void
*
)
ffurl_seek
)
<
0
)
{
av_free
(
buffer
);
av_freep
(
s
);
return
AVERROR
(
EIO
);
...
...
libavformat/mpegenc.c
View file @
e3323a1c
...
...
@@ -923,7 +923,7 @@ static int flush_packet(AVFormatContext *ctx, int stream_index,
/* output data */
assert
(
payload_size
-
stuffing_size
<=
av_fifo_size
(
stream
->
fifo
));
av_fifo_generic_read
(
stream
->
fifo
,
ctx
->
pb
,
payload_size
-
stuffing_size
,
&
avio_write
);
av_fifo_generic_read
(
stream
->
fifo
,
ctx
->
pb
,
payload_size
-
stuffing_size
,
(
void
*
)
avio_write
);
stream
->
bytes_to_iframe
-=
payload_size
-
stuffing_size
;
}
else
{
payload_size
=
...
...
libavformat/swfenc.c
View file @
e3323a1c
...
...
@@ -421,7 +421,7 @@ static int swf_write_video(AVFormatContext *s,
put_swf_tag
(
s
,
TAG_STREAMBLOCK
|
TAG_LONG
);
avio_wl16
(
pb
,
swf
->
sound_samples
);
avio_wl16
(
pb
,
0
);
// seek samples
av_fifo_generic_read
(
swf
->
audio_fifo
,
pb
,
frame_size
,
&
avio_write
);
av_fifo_generic_read
(
swf
->
audio_fifo
,
pb
,
frame_size
,
(
void
*
)
avio_write
);
put_swf_end_tag
(
s
);
/* update FIFO */
...
...
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