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
6d3b9134
Commit
6d3b9134
authored
May 29, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove APEv1 tag writer
Not used anymore. Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
be5a5553
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
65 deletions
+0
-65
apetagenc.c
libavformat/apetagenc.c
+0
-65
No files found.
libavformat/apetagenc.c
deleted
100644 → 0
View file @
be5a5553
/*
* APE tag writer
* Copyright (c) 2012 Paul B Mahol
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "libavutil/dict.h"
#include "avio_internal.h"
#include "avformat.h"
#include "apetag.h"
static
int
string_is_ascii
(
const
uint8_t
*
str
)
{
while
(
*
str
&&
*
str
>=
0x20
&&
*
str
<=
0x7e
)
str
++
;
return
!*
str
;
}
void
ff_ape_write
(
AVFormatContext
*
s
)
{
int64_t
tag_bytes
;
AVDictionaryEntry
*
t
=
NULL
;
AVIOContext
*
pb
=
s
->
pb
;
int
tags
=
0
,
vlen
;
tag_bytes
=
avio_tell
(
s
->
pb
);
while
((
t
=
av_dict_get
(
s
->
metadata
,
""
,
t
,
AV_DICT_IGNORE_SUFFIX
)))
{
if
(
!
string_is_ascii
(
t
->
key
))
{
av_log
(
s
,
AV_LOG_WARNING
,
"Non ASCII keys are not allowed
\n
"
);
continue
;
}
vlen
=
strlen
(
t
->
value
);
avio_wl32
(
pb
,
vlen
+
1
);
avio_wl32
(
pb
,
0
);
// flags
avio_put_str
(
pb
,
t
->
key
);
avio_put_str
(
pb
,
t
->
value
);
tags
++
;
}
tag_bytes
=
avio_tell
(
s
->
pb
)
-
tag_bytes
;
if
(
!
tags
)
return
;
avio_write
(
pb
,
APE_TAG_PREAMBLE
,
8
);
avio_wl32
(
pb
,
APE_TAG_VERSION
);
avio_wl32
(
pb
,
tag_bytes
+
APE_TAG_FOOTER_BYTES
);
avio_wl32
(
pb
,
tags
);
// item count
avio_wl32
(
pb
,
0
);
// global flags
ffio_fill
(
pb
,
0
,
8
);
// reserved
}
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