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
e4f3a969
Commit
e4f3a969
authored
Jul 29, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/apetag: move common stuff between writer and reader to single file
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
c3c9c4d0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
apetag.c
libavformat/apetag.c
+1
-3
apetag.h
libavformat/apetag.h
+4
-0
apetagenc.c
libavformat/apetagenc.c
+0
-4
No files found.
libavformat/apetag.c
View file @
e4f3a969
...
@@ -26,8 +26,6 @@
...
@@ -26,8 +26,6 @@
#include "apetag.h"
#include "apetag.h"
#include "internal.h"
#include "internal.h"
#define APE_TAG_VERSION 2000
#define APE_TAG_FOOTER_BYTES 32
#define APE_TAG_FLAG_CONTAINS_HEADER (1 << 31)
#define APE_TAG_FLAG_CONTAINS_HEADER (1 << 31)
#define APE_TAG_FLAG_IS_HEADER (1 << 29)
#define APE_TAG_FLAG_IS_HEADER (1 << 29)
#define APE_TAG_FLAG_IS_BINARY (1 << 1)
#define APE_TAG_FLAG_IS_BINARY (1 << 1)
...
@@ -127,7 +125,7 @@ void ff_ape_parse_tag(AVFormatContext *s)
...
@@ -127,7 +125,7 @@ void ff_ape_parse_tag(AVFormatContext *s)
avio_seek
(
pb
,
file_size
-
APE_TAG_FOOTER_BYTES
,
SEEK_SET
);
avio_seek
(
pb
,
file_size
-
APE_TAG_FOOTER_BYTES
,
SEEK_SET
);
avio_read
(
pb
,
buf
,
8
);
/* APETAGEX */
avio_read
(
pb
,
buf
,
8
);
/* APETAGEX */
if
(
strncmp
(
buf
,
"APETAGEX"
,
8
))
{
if
(
strncmp
(
buf
,
APE_TAG_PREAMBLE
,
8
))
{
return
;
return
;
}
}
...
...
libavformat/apetag.h
View file @
e4f3a969
...
@@ -25,6 +25,10 @@
...
@@ -25,6 +25,10 @@
#include "avformat.h"
#include "avformat.h"
#define APE_TAG_PREAMBLE "APETAGEX"
#define APE_TAG_VERSION 2000
#define APE_TAG_FOOTER_BYTES 32
/**
/**
* Read and parse an APE tag
* Read and parse an APE tag
*/
*/
...
...
libavformat/apetagenc.c
View file @
e4f3a969
...
@@ -24,10 +24,6 @@
...
@@ -24,10 +24,6 @@
#include "avformat.h"
#include "avformat.h"
#include "apetag.h"
#include "apetag.h"
#define APE_TAG_PREAMBLE "APETAGEX"
#define APE_TAG_VERSION 2000
#define APE_TAG_FOOTER_BYTES 32
static
int
string_is_ascii
(
const
uint8_t
*
str
)
static
int
string_is_ascii
(
const
uint8_t
*
str
)
{
{
while
(
*
str
&&
*
str
>=
0x20
&&
*
str
<=
0x7e
)
str
++
;
while
(
*
str
&&
*
str
>=
0x20
&&
*
str
<=
0x7e
)
str
++
;
...
...
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