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
7c892951
Commit
7c892951
authored
Jul 21, 2010
by
Aurelien Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move ff_get_line to aviobuf.c
Originally committed as revision 24399 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
80769fb7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
14 deletions
+17
-14
assdec.c
libavformat/assdec.c
+1
-14
aviobuf.c
libavformat/aviobuf.c
+14
-0
internal.h
libavformat/internal.h
+2
-0
No files found.
libavformat/assdec.c
View file @
7c892951
...
...
@@ -20,6 +20,7 @@
*/
#include "avformat.h"
#include "internal.h"
#define MAX_LINESIZE 2000
...
...
@@ -30,20 +31,6 @@ typedef struct ASSContext{
unsigned
int
event_index
;
}
ASSContext
;
static
void
ff_get_line
(
ByteIOContext
*
s
,
char
*
buf
,
int
maxlen
)
{
int
i
=
0
;
char
c
;
do
{
c
=
get_byte
(
s
);
if
(
i
<
maxlen
-
1
)
buf
[
i
++
]
=
c
;
}
while
(
c
!=
'\n'
&&
c
);
buf
[
i
]
=
0
;
}
static
int
probe
(
AVProbeData
*
p
)
{
const
char
*
header
=
"[Script Info]"
;
...
...
libavformat/aviobuf.c
View file @
7c892951
...
...
@@ -554,6 +554,20 @@ char *get_strz(ByteIOContext *s, char *buf, int maxlen)
return
buf
;
}
void
ff_get_line
(
ByteIOContext
*
s
,
char
*
buf
,
int
maxlen
)
{
int
i
=
0
;
char
c
;
do
{
c
=
get_byte
(
s
);
if
(
i
<
maxlen
-
1
)
buf
[
i
++
]
=
c
;
}
while
(
c
!=
'\n'
&&
c
);
buf
[
i
]
=
0
;
}
uint64_t
get_be64
(
ByteIOContext
*
s
)
{
uint64_t
val
;
...
...
libavformat/internal.h
View file @
7c892951
...
...
@@ -167,6 +167,8 @@ int ff_get_v_length(uint64_t val);
*/
void
ff_put_v
(
ByteIOContext
*
bc
,
uint64_t
val
);
void
ff_get_line
(
ByteIOContext
*
s
,
char
*
buf
,
int
maxlen
);
#define SPACE_CHARS " \t\r\n"
#endif
/* AVFORMAT_INTERNAL_H */
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