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
eb1e7f78
Commit
eb1e7f78
authored
Mar 15, 2011
by
Anton Khirnov
Committed by
Ronald S. Bultje
Mar 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
id3v2: simplify error handling.
Signed-off-by:
Ronald S. Bultje
<
rsbultje@gmail.com
>
parent
bca6dee3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
id3v2.c
libavformat/id3v2.c
+4
-6
No files found.
libavformat/id3v2.c
View file @
eb1e7f78
...
@@ -188,7 +188,7 @@ static void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t
...
@@ -188,7 +188,7 @@ static void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t
char
tag
[
5
];
char
tag
[
5
];
int64_t
next
,
end
=
avio_tell
(
s
->
pb
)
+
len
;
int64_t
next
,
end
=
avio_tell
(
s
->
pb
)
+
len
;
int
taghdrlen
;
int
taghdrlen
;
const
char
*
reason
;
const
char
*
reason
=
NULL
;
AVIOContext
pb
;
AVIOContext
pb
;
unsigned
char
*
buffer
=
NULL
;
unsigned
char
*
buffer
=
NULL
;
int
buffer_size
=
0
;
int
buffer_size
=
0
;
...
@@ -286,14 +286,12 @@ static void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t
...
@@ -286,14 +286,12 @@ static void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t
if
(
version
==
4
&&
flags
&
0x10
)
/* Footer preset, always 10 bytes, skip over it */
if
(
version
==
4
&&
flags
&
0x10
)
/* Footer preset, always 10 bytes, skip over it */
end
+=
10
;
end
+=
10
;
avio_seek
(
s
->
pb
,
end
,
SEEK_SET
);
av_free
(
buffer
);
return
;
error:
error:
if
(
reason
)
av_log
(
s
,
AV_LOG_INFO
,
"ID3v2.%d tag skipped, cannot handle %s
\n
"
,
version
,
reason
);
av_log
(
s
,
AV_LOG_INFO
,
"ID3v2.%d tag skipped, cannot handle %s
\n
"
,
version
,
reason
);
avio_seek
(
s
->
pb
,
len
,
SEEK_CUR
);
avio_seek
(
s
->
pb
,
end
,
SEEK_SET
);
av_free
(
buffer
);
av_free
(
buffer
);
return
;
}
}
void
ff_id3v2_read
(
AVFormatContext
*
s
,
const
char
*
magic
)
void
ff_id3v2_read
(
AVFormatContext
*
s
,
const
char
*
magic
)
...
...
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