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
6a507ccf
Commit
6a507ccf
authored
Sep 13, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wtvenc: add some asserts because iam paranoid
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
438debd0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
wtvenc.c
libavformat/wtvenc.c
+4
-0
No files found.
libavformat/wtvenc.c
View file @
6a507ccf
...
...
@@ -20,6 +20,7 @@
*/
#include "libavutil/intreadwrite.h"
#include "libavutil/avassert.h"
#include "avformat.h"
#include "internal.h"
#include "wtv.h"
...
...
@@ -137,6 +138,7 @@ static void write_chunk_header(AVFormatContext *s, const ff_asf_guid *guid, int
if
((
stream_id
&
0x80000000
)
&&
guid
!=
&
index_guid
)
{
WtvChunkEntry
*
t
=
wctx
->
index
+
wctx
->
nb_index
;
av_assert0
(
wctx
->
nb_index
<
MAX_NB_INDEX
);
t
->
pos
=
wctx
->
last_chunk_pos
;
t
->
serial
=
wctx
->
serial
;
t
->
guid
=
guid
;
...
...
@@ -607,6 +609,8 @@ static int finish_file(AVFormatContext *s, enum WtvFileIndex index, int64_t star
int64_t
end_pos
=
avio_tell
(
pb
);
int
sector_bits
,
nb_sectors
,
pad
;
av_assert0
(
index
<
WTV_FILES
);
w
->
length
=
(
end_pos
-
start_pos
);
// determine optimal fat table depth, sector_bits, nb_sectors
...
...
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