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
eaf65538
Commit
eaf65538
authored
Jun 17, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avienc: use av_assert
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
4aed3ac8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
avienc.c
libavformat/avienc.c
+4
-3
No files found.
libavformat/avienc.c
View file @
eaf65538
...
...
@@ -25,6 +25,7 @@
#include "riff.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/dict.h"
#include "libavutil/avassert.h"
/*
* TODO:
...
...
@@ -130,7 +131,7 @@ static int avi_write_counters(AVFormatContext* s, int riff_id)
for
(
n
=
0
;
n
<
s
->
nb_streams
;
n
++
)
{
AVIStream
*
avist
=
s
->
streams
[
n
]
->
priv_data
;
a
ssert
(
avist
->
frames_hdr_strm
);
a
v_assert0
(
avist
->
frames_hdr_strm
);
stream
=
s
->
streams
[
n
]
->
codec
;
avio_seek
(
pb
,
avist
->
frames_hdr_strm
,
SEEK_SET
);
ff_parse_specific_params
(
stream
,
&
au_byterate
,
&
au_ssize
,
&
au_scale
);
...
...
@@ -143,7 +144,7 @@ static int avi_write_counters(AVFormatContext* s, int riff_id)
nb_frames
=
FFMAX
(
nb_frames
,
avist
->
packet_count
);
}
if
(
riff_id
==
1
)
{
a
ssert
(
avi
->
frames_hdr_all
);
a
v_assert0
(
avi
->
frames_hdr_all
);
avio_seek
(
pb
,
avi
->
frames_hdr_all
,
SEEK_SET
);
avio_wl32
(
pb
,
nb_frames
);
}
...
...
@@ -411,7 +412,7 @@ static int avi_write_ix(AVFormatContext *s)
char
ix_tag
[]
=
"ix00"
;
int
i
,
j
;
a
ssert
(
pb
->
seekable
);
a
v_assert0
(
pb
->
seekable
);
if
(
avi
->
riff_id
>
AVI_MASTER_INDEX_SIZE
)
return
-
1
;
...
...
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