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
045b80e5
Commit
045b80e5
authored
Jan 21, 2011
by
Clément Bœsch
Committed by
Janne Grunau
Jan 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move ID3v1 skip from decoder to demuxer
Signed-off-by:
Janne Grunau
<
janne-ffmpeg@jannau.net
>
parent
f4b1e21a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
mpegaudiodec.c
libavcodec/mpegaudiodec.c
+0
-8
mp3dec.c
libavformat/mp3dec.c
+5
-0
No files found.
libavcodec/mpegaudiodec.c
View file @
045b80e5
...
...
@@ -27,7 +27,6 @@
#include "avcodec.h"
#include "get_bits.h"
#include "dsputil.h"
#include "libavformat/id3v1.h"
/*
* TODO:
...
...
@@ -2044,13 +2043,6 @@ static int decode_frame(AVCodecContext * avctx,
header
=
AV_RB32
(
buf
);
if
(
ff_mpa_check_header
(
header
)
<
0
){
if
(
buf_size
==
ID3v1_TAG_SIZE
&&
buf
[
0
]
==
'T'
&&
buf
[
1
]
==
'A'
&&
buf
[
2
]
==
'G'
)
{
*
data_size
=
0
;
return
ID3v1_TAG_SIZE
;
}
av_log
(
avctx
,
AV_LOG_ERROR
,
"Header missing
\n
"
);
return
-
1
;
}
...
...
libavformat/mp3dec.c
View file @
045b80e5
...
...
@@ -174,6 +174,11 @@ static int mp3_read_packet(AVFormatContext *s, AVPacket *pkt)
if
(
ret
<=
0
)
{
return
AVERROR
(
EIO
);
}
if
(
ret
>
ID3v1_TAG_SIZE
&&
memcmp
(
&
pkt
->
data
[
ret
-
ID3v1_TAG_SIZE
],
"TAG"
,
3
)
==
0
)
ret
-=
ID3v1_TAG_SIZE
;
/* note: we need to modify the packet size here to handle the last
packet */
pkt
->
size
=
ret
;
...
...
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