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
60df6b00
Commit
60df6b00
authored
Oct 02, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
id3v2: remove pointless casts
parent
d2961e4e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
id3v2.c
libavformat/id3v2.c
+3
-3
No files found.
libavformat/id3v2.c
View file @
60df6b00
...
...
@@ -111,7 +111,7 @@ static int decode_str(AVFormatContext *s, AVIOContext *pb, int encoding,
case
ID3v2_ENCODING_UTF16BOM
:
if
((
left
-=
2
)
<
0
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"Cannot read BOM value, input too short
\n
"
);
avio_close_dyn_buf
(
dynbuf
,
(
uint8_t
**
)
dst
);
avio_close_dyn_buf
(
dynbuf
,
dst
);
av_freep
(
dst
);
return
AVERROR_INVALIDDATA
;
}
...
...
@@ -122,7 +122,7 @@ static int decode_str(AVFormatContext *s, AVIOContext *pb, int encoding,
break
;
default:
av_log
(
s
,
AV_LOG_ERROR
,
"Incorrect BOM value
\n
"
);
avio_close_dyn_buf
(
dynbuf
,
(
uint8_t
**
)
dst
);
avio_close_dyn_buf
(
dynbuf
,
dst
);
av_freep
(
dst
);
*
maxread
=
left
;
return
AVERROR_INVALIDDATA
;
...
...
@@ -152,7 +152,7 @@ static int decode_str(AVFormatContext *s, AVIOContext *pb, int encoding,
if
(
ch
)
avio_w8
(
dynbuf
,
0
);
avio_close_dyn_buf
(
dynbuf
,
(
uint8_t
**
)
dst
);
avio_close_dyn_buf
(
dynbuf
,
dst
);
*
maxread
=
left
;
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