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
d19d679e
Commit
d19d679e
authored
Jun 03, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/aacdec: add support for reading ape tags
Closes #2634. Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
55121f3f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
Makefile
libavformat/Makefile
+1
-1
aacdec.c
libavformat/aacdec.c
+7
-1
No files found.
libavformat/Makefile
View file @
d19d679e
...
...
@@ -50,7 +50,7 @@ OBJS-$(CONFIG_SHARED) += log2_tab.o
# muxers/demuxers
OBJS-$(CONFIG_A64_MUXER)
+=
a64.o
rawenc.o
OBJS-$(CONFIG_AAC_DEMUXER)
+=
aacdec.o
rawdec.o
OBJS-$(CONFIG_AAC_DEMUXER)
+=
aacdec.o
apetag.o
rawdec.o
OBJS-$(CONFIG_AC3_DEMUXER)
+=
ac3dec.o
rawdec.o
OBJS-$(CONFIG_AC3_MUXER)
+=
rawenc.o
OBJS-$(CONFIG_ACT_DEMUXER)
+=
act.o
...
...
libavformat/aacdec.c
View file @
d19d679e
...
...
@@ -25,7 +25,7 @@
#include "internal.h"
#include "rawdec.h"
#include "id3v1.h"
#include "apetag.h"
static
int
adts_aac_probe
(
AVProbeData
*
p
)
{
...
...
@@ -75,6 +75,12 @@ static int adts_aac_read_header(AVFormatContext *s)
st
->
need_parsing
=
AVSTREAM_PARSE_FULL_RAW
;
ff_id3v1_read
(
s
);
if
(
s
->
pb
->
seekable
&&
!
av_dict_get
(
s
->
metadata
,
""
,
NULL
,
AV_DICT_IGNORE_SUFFIX
))
{
int64_t
cur
=
avio_tell
(
s
->
pb
);
ff_ape_parse_tag
(
s
);
avio_seek
(
s
->
pb
,
cur
,
SEEK_SET
);
}
//LCM of all possible ADTS sample rates
avpriv_set_pts_info
(
st
,
64
,
1
,
28224000
);
...
...
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