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
4a6d790a
Commit
4a6d790a
authored
Jun 13, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nutenc: use av_assert
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
53eaca5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
nutenc.c
libavformat/nutenc.c
+3
-2
No files found.
libavformat/nutenc.c
View file @
4a6d790a
...
...
@@ -23,6 +23,7 @@
#include "libavutil/mathematics.h"
#include "libavutil/tree.h"
#include "libavutil/dict.h"
#include "libavutil/avassert.h"
#include "libavcodec/mpegaudiodata.h"
#include "nut.h"
#include "internal.h"
...
...
@@ -640,7 +641,7 @@ static int nut_write_header(AVFormatContext *s){
nut
->
max_distance
=
MAX_DISTANCE
;
build_elision_headers
(
s
);
build_frame_code
(
s
);
a
ssert
(
nut
->
frame_code
[
'N'
].
flags
==
FLAG_INVALID
);
a
v_assert0
(
nut
->
frame_code
[
'N'
].
flags
==
FLAG_INVALID
);
avio_write
(
bc
,
ID_STRING
,
strlen
(
ID_STRING
));
avio_w8
(
bc
,
0
);
...
...
@@ -745,7 +746,7 @@ static int nut_write_packet(AVFormatContext *s, AVPacket *pkt){
ff_nut_add_sp
(
nut
,
nut
->
last_syncpoint_pos
,
0
/*unused*/
,
pkt
->
dts
);
}
a
ssert
(
nus
->
last_pts
!=
AV_NOPTS_VALUE
);
a
v_assert0
(
nus
->
last_pts
!=
AV_NOPTS_VALUE
);
coded_pts
=
pkt
->
pts
&
((
1
<<
nus
->
msb_pts_shift
)
-
1
);
if
(
ff_lsb2full
(
nus
,
coded_pts
)
!=
pkt
->
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