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
95a06eb4
Commit
95a06eb4
authored
Sep 13, 2011
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix assert() calls that need updates after FF_COMMON_FRAME macro elimination.
This fixes build failures with -DDEBUG in CPPFLAGS.
parent
35a68558
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
12 deletions
+12
-12
h261dec.c
libavcodec/h261dec.c
+2
-2
h264.c
libavcodec/h264.c
+1
-1
h264_direct.c
libavcodec/h264_direct.c
+2
-2
mpegvideo.c
libavcodec/mpegvideo.c
+2
-2
mpegvideo_enc.c
libavcodec/mpegvideo_enc.c
+5
-5
No files found.
libavcodec/h261dec.c
View file @
95a06eb4
...
...
@@ -620,8 +620,8 @@ retry:
}
MPV_frame_end
(
s
);
assert
(
s
->
current_picture
.
pict_type
==
s
->
current_picture_ptr
->
pict_type
);
assert
(
s
->
current_picture
.
pict_type
==
s
->
pict_type
);
assert
(
s
->
current_picture
.
f
.
pict_type
==
s
->
current_picture_ptr
->
f
.
pict_type
);
assert
(
s
->
current_picture
.
f
.
pict_type
==
s
->
pict_type
);
*
pict
=
*
(
AVFrame
*
)
s
->
current_picture_ptr
;
ff_print_debug_info
(
s
,
pict
);
...
...
libavcodec/h264.c
View file @
95a06eb4
...
...
@@ -2722,7 +2722,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
if
(
s0
->
first_field
)
{
assert
(
s0
->
current_picture_ptr
);
assert
(
s0
->
current_picture_ptr
->
f
.
data
[
0
]);
assert
(
s0
->
current_picture_ptr
->
reference
!=
DELAYED_PIC_REF
);
assert
(
s0
->
current_picture_ptr
->
f
.
reference
!=
DELAYED_PIC_REF
);
/* figure out if we have a complementary field pair */
if
(
!
FIELD_PICTURE
||
s
->
picture_structure
==
last_pic_structure
)
{
...
...
libavcodec/h264_direct.c
View file @
95a06eb4
...
...
@@ -172,7 +172,7 @@ static void pred_spatial_direct_motion(H264Context * const h, int *mb_type){
int
mv
[
2
];
int
list
;
assert
(
h
->
ref_list
[
1
][
0
].
reference
&
3
);
assert
(
h
->
ref_list
[
1
][
0
].
f
.
reference
&
3
);
await_reference_mb_row
(
h
,
&
h
->
ref_list
[
1
][
0
],
s
->
mb_y
+
!!
IS_INTERLACED
(
*
mb_type
));
...
...
@@ -416,7 +416,7 @@ static void pred_temp_direct_motion(H264Context * const h, int *mb_type){
unsigned
int
sub_mb_type
;
int
i8
,
i4
;
assert
(
h
->
ref_list
[
1
][
0
].
reference
&
3
);
assert
(
h
->
ref_list
[
1
][
0
].
f
.
reference
&
3
);
await_reference_mb_row
(
h
,
&
h
->
ref_list
[
1
][
0
],
s
->
mb_y
+
!!
IS_INTERLACED
(
*
mb_type
));
...
...
libavcodec/mpegvideo.c
View file @
95a06eb4
...
...
@@ -225,7 +225,7 @@ static int alloc_frame_buffer(MpegEncContext *s, Picture *pic)
int
r
;
if
(
s
->
avctx
->
hwaccel
)
{
assert
(
!
pic
->
hwaccel_picture_private
);
assert
(
!
pic
->
f
.
hwaccel_picture_private
);
if
(
s
->
avctx
->
hwaccel
->
priv_data_size
)
{
pic
->
f
.
hwaccel_picture_private
=
av_mallocz
(
s
->
avctx
->
hwaccel
->
priv_data_size
);
if
(
!
pic
->
f
.
hwaccel_picture_private
)
{
...
...
@@ -276,7 +276,7 @@ int ff_alloc_picture(MpegEncContext *s, Picture *pic, int shared){
if
(
shared
){
assert
(
pic
->
f
.
data
[
0
]);
assert
(
pic
->
type
==
0
||
pic
->
type
==
FF_BUFFER_TYPE_SHARED
);
assert
(
pic
->
f
.
type
==
0
||
pic
->
f
.
type
==
FF_BUFFER_TYPE_SHARED
);
pic
->
f
.
type
=
FF_BUFFER_TYPE_SHARED
;
}
else
{
assert
(
!
pic
->
f
.
data
[
0
]);
...
...
libavcodec/mpegvideo_enc.c
View file @
95a06eb4
...
...
@@ -1093,8 +1093,8 @@ static int select_input_picture(MpegEncContext *s){
s
->
input_picture
[
0
]
->
f
.
data
[
i
]
=
NULL
;
s
->
input_picture
[
0
]
->
f
.
type
=
0
;
}
else
{
assert
(
s
->
input_picture
[
0
]
->
type
==
FF_BUFFER_TYPE_USER
||
s
->
input_picture
[
0
]
->
type
==
FF_BUFFER_TYPE_INTERNAL
);
assert
(
s
->
input_picture
[
0
]
->
f
.
type
==
FF_BUFFER_TYPE_USER
||
s
->
input_picture
[
0
]
->
f
.
type
==
FF_BUFFER_TYPE_INTERNAL
);
s
->
avctx
->
release_buffer
(
s
->
avctx
,
(
AVFrame
*
)
s
->
input_picture
[
0
]);
}
...
...
@@ -1220,8 +1220,8 @@ no_output_pic:
}
else
{
// input is not a shared pix -> reuse buffer for current_pix
assert
(
s
->
reordered_input_picture
[
0
]
->
type
==
FF_BUFFER_TYPE_USER
||
s
->
reordered_input_picture
[
0
]
->
type
==
FF_BUFFER_TYPE_INTERNAL
);
assert
(
s
->
reordered_input_picture
[
0
]
->
f
.
type
==
FF_BUFFER_TYPE_USER
||
s
->
reordered_input_picture
[
0
]
->
f
.
type
==
FF_BUFFER_TYPE_INTERNAL
);
s
->
current_picture_ptr
=
s
->
reordered_input_picture
[
0
];
for
(
i
=
0
;
i
<
4
;
i
++
){
...
...
@@ -2757,7 +2757,7 @@ static int estimate_qp(MpegEncContext *s, int dry_run){
/* must be called before writing the header */
static
void
set_frame_distances
(
MpegEncContext
*
s
){
assert
(
s
->
current_picture_ptr
->
pts
!=
AV_NOPTS_VALUE
);
assert
(
s
->
current_picture_ptr
->
f
.
pts
!=
AV_NOPTS_VALUE
);
s
->
time
=
s
->
current_picture_ptr
->
f
.
pts
*
s
->
avctx
->
time_base
.
num
;
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