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
bc13b749
Commit
bc13b749
authored
Apr 04, 2012
by
Ramiro Polla
Committed by
Michael Niedermayer
Apr 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asfenc: remove useless casts
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f2fad251
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
asfenc.c
libavformat/asfenc.c
+4
-4
No files found.
libavformat/asfenc.c
View file @
bc13b749
...
...
@@ -813,13 +813,13 @@ static int asf_write_packet(AVFormatContext *s, AVPacket *pkt)
if
(
start_sec
!=
(
int
)(
asf
->
last_indexed_pts
/
INT64_C
(
10000000
)))
{
if
(
start_sec
>
asf
->
nb_index_memory_alloc
)
{
asf
->
nb_index_memory_alloc
=
(
start_sec
+
ASF_INDEX_BLOCK
)
&
~
(
ASF_INDEX_BLOCK
-
1
);
asf
->
index_ptr
=
(
ASFIndex
*
)
av_realloc
(
asf
->
index_ptr
,
sizeof
(
ASFIndex
)
*
asf
->
nb_index_memory_alloc
);
asf
->
index_ptr
=
av_realloc
(
asf
->
index_ptr
,
sizeof
(
ASFIndex
)
*
asf
->
nb_index_memory_alloc
);
}
for
(
i
=
asf
->
nb_index_count
;
i
<
start_sec
;
i
++
)
{
// store
asf
->
index_ptr
[
i
].
packet_number
=
(
uint32_t
)
packet_number
;
asf
->
index_ptr
[
i
].
packet_count
=
(
uint16_t
)
packet_count
;
asf
->
maximum_packet
=
FFMAX
(
asf
->
maximum_packet
,
(
uint16_t
)
packet_count
);
asf
->
index_ptr
[
i
].
packet_number
=
packet_number
;
asf
->
index_ptr
[
i
].
packet_count
=
packet_count
;
asf
->
maximum_packet
=
FFMAX
(
asf
->
maximum_packet
,
packet_count
);
}
asf
->
nb_index_count
=
start_sec
;
asf
->
last_indexed_pts
=
pts
;
...
...
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