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
7246bf36
Commit
7246bf36
authored
Feb 01, 2019
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/mpegvideo_enc: Use av_assert1() instead of assert()
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
d1afa728
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mpegvideo_enc.c
libavcodec/mpegvideo_enc.c
+4
-4
No files found.
libavcodec/mpegvideo_enc.c
View file @
7246bf36
...
@@ -2005,7 +2005,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
...
@@ -2005,7 +2005,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"Internal error, negative bits
\n
"
);
"Internal error, negative bits
\n
"
);
a
ssert
(
s
->
repeat_first_field
==
0
);
a
v_assert1
(
s
->
repeat_first_field
==
0
);
vbv_delay
=
bits
*
90000
/
s
->
avctx
->
rc_max_rate
;
vbv_delay
=
bits
*
90000
/
s
->
avctx
->
rc_max_rate
;
min_delay
=
(
minbits
*
90000LL
+
s
->
avctx
->
rc_max_rate
-
1
)
/
min_delay
=
(
minbits
*
90000LL
+
s
->
avctx
->
rc_max_rate
-
1
)
/
...
@@ -3056,7 +3056,7 @@ static int encode_thread(AVCodecContext *c, void *arg){
...
@@ -3056,7 +3056,7 @@ static int encode_thread(AVCodecContext *c, void *arg){
if
(
r
%
d
==
0
){
if
(
r
%
d
==
0
){
current_packet_size
=
0
;
current_packet_size
=
0
;
s
->
pb
.
buf_ptr
=
s
->
ptr_lastgob
;
s
->
pb
.
buf_ptr
=
s
->
ptr_lastgob
;
a
ssert
(
put_bits_ptr
(
&
s
->
pb
)
==
s
->
ptr_lastgob
);
a
v_assert1
(
put_bits_ptr
(
&
s
->
pb
)
==
s
->
ptr_lastgob
);
}
}
}
}
...
@@ -3642,11 +3642,11 @@ static void set_frame_distances(MpegEncContext * s){
...
@@ -3642,11 +3642,11 @@ static void set_frame_distances(MpegEncContext * s){
if
(
s
->
pict_type
==
AV_PICTURE_TYPE_B
){
if
(
s
->
pict_type
==
AV_PICTURE_TYPE_B
){
s
->
pb_time
=
s
->
pp_time
-
(
s
->
last_non_b_time
-
s
->
time
);
s
->
pb_time
=
s
->
pp_time
-
(
s
->
last_non_b_time
-
s
->
time
);
a
ssert
(
s
->
pb_time
>
0
&&
s
->
pb_time
<
s
->
pp_time
);
a
v_assert1
(
s
->
pb_time
>
0
&&
s
->
pb_time
<
s
->
pp_time
);
}
else
{
}
else
{
s
->
pp_time
=
s
->
time
-
s
->
last_non_b_time
;
s
->
pp_time
=
s
->
time
-
s
->
last_non_b_time
;
s
->
last_non_b_time
=
s
->
time
;
s
->
last_non_b_time
=
s
->
time
;
a
ssert
(
s
->
picture_number
==
0
||
s
->
pp_time
>
0
);
a
v_assert1
(
s
->
picture_number
==
0
||
s
->
pp_time
>
0
);
}
}
}
}
...
...
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