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
c1309b27
Commit
c1309b27
authored
Apr 05, 2011
by
Peter Ross
Committed by
Michael Niedermayer
Apr 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move ff_asf_guid, ff_guidcmp and ff_get_guid into riff.h
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
dc410361
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
15 deletions
+16
-15
asf.h
libavformat/asf.h
+1
-9
asfdec.c
libavformat/asfdec.c
+0
-6
riff.c
libavformat/riff.c
+6
-0
riff.h
libavformat/riff.h
+9
-0
No files found.
libavformat/asf.h
View file @
c1309b27
...
...
@@ -24,6 +24,7 @@
#include <stdint.h>
#include "avformat.h"
#include "metadata.h"
#include "riff.h"
#define PACKET_SIZE 3200
...
...
@@ -46,8 +47,6 @@ typedef struct {
}
ASFStream
;
typedef
uint8_t
ff_asf_guid
[
16
];
typedef
struct
{
ff_asf_guid
guid
;
///< generated by client computer
uint64_t
file_size
;
/**< in bytes
...
...
@@ -173,11 +172,4 @@ extern const AVMetadataConv ff_asf_metadata_conv[];
extern
AVInputFormat
ff_asf_demuxer
;
static
av_always_inline
int
ff_guidcmp
(
const
void
*
g1
,
const
void
*
g2
)
{
return
memcmp
(
g1
,
g2
,
sizeof
(
ff_asf_guid
));
}
void
ff_get_guid
(
AVIOContext
*
s
,
ff_asf_guid
*
g
);
#endif
/* AVFORMAT_ASF_H */
libavformat/asfdec.c
View file @
c1309b27
...
...
@@ -133,12 +133,6 @@ static void print_guid(const ff_asf_guid *g)
#define print_guid(g)
#endif
void
ff_get_guid
(
AVIOContext
*
s
,
ff_asf_guid
*
g
)
{
assert
(
sizeof
(
*
g
)
==
16
);
avio_read
(
s
,
*
g
,
sizeof
(
*
g
));
}
static
int
asf_probe
(
AVProbeData
*
pd
)
{
/* check file header */
...
...
libavformat/riff.c
View file @
c1309b27
...
...
@@ -584,3 +584,9 @@ void ff_parse_specific_params(AVCodecContext *stream, int *au_rate, int *au_ssiz
*
au_scale
/=
gcd
;
*
au_rate
/=
gcd
;
}
void
ff_get_guid
(
AVIOContext
*
s
,
ff_asf_guid
*
g
)
{
assert
(
sizeof
(
*
g
)
==
16
);
avio_read
(
s
,
*
g
,
sizeof
(
*
g
));
}
libavformat/riff.h
View file @
c1309b27
...
...
@@ -54,4 +54,13 @@ unsigned int ff_codec_get_tag(const AVCodecTag *tags, enum CodecID id);
enum
CodecID
ff_codec_get_id
(
const
AVCodecTag
*
tags
,
unsigned
int
tag
);
void
ff_parse_specific_params
(
AVCodecContext
*
stream
,
int
*
au_rate
,
int
*
au_ssize
,
int
*
au_scale
);
typedef
uint8_t
ff_asf_guid
[
16
];
static
av_always_inline
int
ff_guidcmp
(
const
void
*
g1
,
const
void
*
g2
)
{
return
memcmp
(
g1
,
g2
,
sizeof
(
ff_asf_guid
));
}
void
ff_get_guid
(
AVIOContext
*
s
,
ff_asf_guid
*
g
);
#endif
/* AVFORMAT_RIFF_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