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
ce0a9756
Commit
ce0a9756
authored
Jun 22, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpc8: read APE tags.
parent
acd9948e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
Makefile
libavformat/Makefile
+1
-1
mpc8.c
libavformat/mpc8.c
+7
-0
No files found.
libavformat/Makefile
View file @
ce0a9756
...
...
@@ -150,7 +150,7 @@ OBJS-$(CONFIG_MP2_MUXER) += mp3enc.o rawenc.o
OBJS-$(CONFIG_MP3_DEMUXER)
+=
mp3dec.o
OBJS-$(CONFIG_MP3_MUXER)
+=
mp3enc.o
rawenc.o
id3v2enc.o
OBJS-$(CONFIG_MPC_DEMUXER)
+=
mpc.o
apetag.o
OBJS-$(CONFIG_MPC8_DEMUXER)
+=
mpc8.o
OBJS-$(CONFIG_MPC8_DEMUXER)
+=
mpc8.o
apetag.o
OBJS-$(CONFIG_MPEG1SYSTEM_MUXER)
+=
mpegenc.o
OBJS-$(CONFIG_MPEG1VCD_MUXER)
+=
mpegenc.o
OBJS-$(CONFIG_MPEG2DVD_MUXER)
+=
mpegenc.o
...
...
libavformat/mpc8.c
View file @
ce0a9756
...
...
@@ -21,6 +21,7 @@
#include "libavcodec/get_bits.h"
#include "libavcodec/unary.h"
#include "apetag.h"
#include "avformat.h"
#include "internal.h"
#include "avio_internal.h"
...
...
@@ -240,6 +241,12 @@ static int mpc8_read_header(AVFormatContext *s)
st
->
duration
=
c
->
samples
/
(
1152
<<
(
st
->
codec
->
extradata
[
1
]
&
3
)
*
2
);
size
-=
avio_tell
(
pb
)
-
pos
;
if
(
pb
->
seekable
)
{
int64_t
pos
=
avio_tell
(
s
->
pb
);
ff_ape_parse_tag
(
s
);
avio_seek
(
s
->
pb
,
pos
,
SEEK_SET
);
}
return
0
;
}
...
...
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