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
d9d86e00
Commit
d9d86e00
authored
Mar 14, 2011
by
Anton Khirnov
Committed by
Ronald S. Bultje
Mar 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avio: avio_ prefix for url_fprintf
Signed-off-by:
Ronald S. Bultje
<
rsbultje@gmail.com
>
parent
af020732
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
86 additions
and
69 deletions
+86
-69
ffserver.c
ffserver.c
+63
-63
avio.h
libavformat/avio.h
+7
-2
aviobuf.c
libavformat/aviobuf.c
+13
-1
ffmetaenc.c
libavformat/ffmetaenc.c
+3
-3
No files found.
ffserver.c
View file @
d9d86e00
This diff is collapsed.
Click to expand it.
libavformat/avio.h
View file @
d9d86e00
...
...
@@ -430,6 +430,11 @@ attribute_deprecated int64_t url_fsize(AVIOContext *s);
#define URL_EOF (-1)
attribute_deprecated
int
url_fgetc
(
AVIOContext
*
s
);
attribute_deprecated
int
url_setbufsize
(
AVIOContext
*
s
,
int
buf_size
);
#ifdef __GNUC__
attribute_deprecated
int
url_fprintf
(
AVIOContext
*
s
,
const
char
*
fmt
,
...)
__attribute__
((
__format__
(
__printf__
,
2
,
3
)));
#else
attribute_deprecated
int
url_fprintf
(
AVIOContext
*
s
,
const
char
*
fmt
,
...);
#endif
/**
* @}
*/
...
...
@@ -513,9 +518,9 @@ int64_t av_url_read_fseek(AVIOContext *h, int stream_index,
/** @warning currently size is limited */
#ifdef __GNUC__
int
url_f
printf
(
AVIOContext
*
s
,
const
char
*
fmt
,
...)
__attribute__
((
__format__
(
__printf__
,
2
,
3
)));
int
avio_
printf
(
AVIOContext
*
s
,
const
char
*
fmt
,
...)
__attribute__
((
__format__
(
__printf__
,
2
,
3
)));
#else
int
url_f
printf
(
AVIOContext
*
s
,
const
char
*
fmt
,
...);
int
avio_
printf
(
AVIOContext
*
s
,
const
char
*
fmt
,
...);
#endif
#if FF_API_OLD_AVIO
...
...
libavformat/aviobuf.c
View file @
d9d86e00
...
...
@@ -381,6 +381,18 @@ int url_setbufsize(AVIOContext *s, int buf_size)
{
return
ffio_set_buf_size
(
s
,
buf_size
);
}
int
url_fprintf
(
AVIOContext
*
s
,
const
char
*
fmt
,
...)
{
va_list
ap
;
char
buf
[
4096
];
int
ret
;
va_start
(
ap
,
fmt
);
ret
=
vsnprintf
(
buf
,
sizeof
(
buf
),
fmt
,
ap
);
va_end
(
ap
);
avio_write
(
s
,
buf
,
strlen
(
buf
));
return
ret
;
}
#endif
int
avio_put_str
(
AVIOContext
*
s
,
const
char
*
str
)
...
...
@@ -913,7 +925,7 @@ URLContext *url_fileno(AVIOContext *s)
}
#if CONFIG_MUXERS
int
url_f
printf
(
AVIOContext
*
s
,
const
char
*
fmt
,
...)
int
avio_
printf
(
AVIOContext
*
s
,
const
char
*
fmt
,
...)
{
va_list
ap
;
char
buf
[
4096
];
...
...
libavformat/ffmetaenc.c
View file @
d9d86e00
...
...
@@ -73,9 +73,9 @@ static int write_trailer(AVFormatContext *s)
AVChapter
*
ch
=
s
->
chapters
[
i
];
avio_write
(
s
->
pb
,
ID_CHAPTER
,
sizeof
(
ID_CHAPTER
)
-
1
);
avio_w8
(
s
->
pb
,
'\n'
);
url_f
printf
(
s
->
pb
,
"TIMEBASE=%d/%d
\n
"
,
ch
->
time_base
.
num
,
ch
->
time_base
.
den
);
url_f
printf
(
s
->
pb
,
"START=%"
PRId64
"
\n
"
,
ch
->
start
);
url_f
printf
(
s
->
pb
,
"END=%"
PRId64
"
\n
"
,
ch
->
end
);
avio_
printf
(
s
->
pb
,
"TIMEBASE=%d/%d
\n
"
,
ch
->
time_base
.
num
,
ch
->
time_base
.
den
);
avio_
printf
(
s
->
pb
,
"START=%"
PRId64
"
\n
"
,
ch
->
start
);
avio_
printf
(
s
->
pb
,
"END=%"
PRId64
"
\n
"
,
ch
->
end
);
write_tags
(
s
->
pb
,
ch
->
metadata
);
}
...
...
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