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
849d40dc
Commit
849d40dc
authored
Apr 09, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/mpegvideo_enc: change some asserts to av_asserts
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
968516ce
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 @
849d40dc
...
@@ -1703,7 +1703,7 @@ vbv_retry:
...
@@ -1703,7 +1703,7 @@ vbv_retry:
goto
vbv_retry
;
goto
vbv_retry
;
}
}
a
ssert
(
s
->
avctx
->
rc_max_rate
);
a
v_assert0
(
s
->
avctx
->
rc_max_rate
);
}
}
if
(
s
->
flags
&
CODEC_FLAG_PASS1
)
if
(
s
->
flags
&
CODEC_FLAG_PASS1
)
...
@@ -1812,7 +1812,7 @@ vbv_retry:
...
@@ -1812,7 +1812,7 @@ vbv_retry:
ff_mpeg_unref_picture
(
s
,
&
s
->
picture
[
i
]);
ff_mpeg_unref_picture
(
s
,
&
s
->
picture
[
i
]);
}
}
a
ssert
((
s
->
frame_bits
&
7
)
==
0
);
a
v_assert1
((
s
->
frame_bits
&
7
)
==
0
);
pkt
->
size
=
s
->
frame_bits
/
8
;
pkt
->
size
=
s
->
frame_bits
/
8
;
*
got_packet
=
!!
pkt
->
size
;
*
got_packet
=
!!
pkt
->
size
;
...
@@ -2417,7 +2417,7 @@ static inline void encode_mb_hq(MpegEncContext *s, MpegEncContext *backup, MpegE
...
@@ -2417,7 +2417,7 @@ static inline void encode_mb_hq(MpegEncContext *s, MpegEncContext *backup, MpegE
s
->
dest
[
0
]
=
s
->
rd_scratchpad
;
s
->
dest
[
0
]
=
s
->
rd_scratchpad
;
s
->
dest
[
1
]
=
s
->
rd_scratchpad
+
16
*
s
->
linesize
;
s
->
dest
[
1
]
=
s
->
rd_scratchpad
+
16
*
s
->
linesize
;
s
->
dest
[
2
]
=
s
->
rd_scratchpad
+
16
*
s
->
linesize
+
8
;
s
->
dest
[
2
]
=
s
->
rd_scratchpad
+
16
*
s
->
linesize
+
8
;
a
ssert
(
s
->
linesize
>=
32
);
//FIXME
a
v_assert0
(
s
->
linesize
>=
32
);
//FIXME
}
}
encode_mb
(
s
,
motion_x
,
motion_y
);
encode_mb
(
s
,
motion_x
,
motion_y
);
...
@@ -3337,7 +3337,7 @@ static int estimate_qp(MpegEncContext *s, int dry_run){
...
@@ -3337,7 +3337,7 @@ static int estimate_qp(MpegEncContext *s, int dry_run){
/* must be called before writing the header */
/* must be called before writing the header */
static
void
set_frame_distances
(
MpegEncContext
*
s
){
static
void
set_frame_distances
(
MpegEncContext
*
s
){
a
ssert
(
s
->
current_picture_ptr
->
f
->
pts
!=
AV_NOPTS_VALUE
);
a
v_assert1
(
s
->
current_picture_ptr
->
f
->
pts
!=
AV_NOPTS_VALUE
);
s
->
time
=
s
->
current_picture_ptr
->
f
->
pts
*
s
->
avctx
->
time_base
.
num
;
s
->
time
=
s
->
current_picture_ptr
->
f
->
pts
*
s
->
avctx
->
time_base
.
num
;
if
(
s
->
pict_type
==
AV_PICTURE_TYPE_B
){
if
(
s
->
pict_type
==
AV_PICTURE_TYPE_B
){
...
...
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