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
93b96715
Commit
93b96715
authored
Jan 24, 2019
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/supenc: Remove some unneeded casts.
parent
406f8d9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
supenc.c
libavformat/supenc.c
+6
-6
No files found.
libavformat/supenc.c
View file @
93b96715
...
...
@@ -32,10 +32,10 @@ static int sup_write_packet(AVFormatContext *s, AVPacket *pkt)
uint32_t
pts
=
0
,
dts
=
0
;
if
(
pkt
->
pts
!=
AV_NOPTS_VALUE
)
{
pts
=
(
uint32_t
)
pkt
->
pts
;
pts
=
pkt
->
pts
;
}
if
(
pkt
->
dts
!=
AV_NOPTS_VALUE
)
{
dts
=
(
uint32_t
)
pkt
->
dts
;
dts
=
pkt
->
dts
;
}
/*
...
...
@@ -46,8 +46,8 @@ static int sup_write_packet(AVFormatContext *s, AVPacket *pkt)
size_t
len
=
AV_RB16
(
data
+
1
)
+
3
;
if
(
len
>
size
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"Not enough data, skipping %
d
bytes
\n
"
,
(
int
)
size
);
av_log
(
s
,
AV_LOG_ERROR
,
"Not enough data, skipping %
"
SIZE_SPECIFIER
"
bytes
\n
"
,
size
);
return
AVERROR_INVALIDDATA
;
}
...
...
@@ -63,8 +63,8 @@ static int sup_write_packet(AVFormatContext *s, AVPacket *pkt)
}
if
(
size
>
0
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"Skipping %
d
bytes after last segment in frame
\n
"
,
(
int
)
size
);
av_log
(
s
,
AV_LOG_ERROR
,
"Skipping %
"
SIZE_SPECIFIER
"
bytes after last segment in frame
\n
"
,
size
);
return
AVERROR_INVALIDDATA
;
}
...
...
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