Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
febbb3cb
Commit
febbb3cb
authored
Apr 26, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/h264_slice: Change a few asserts to av_assert*
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
fa2d3b6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
h264_slice.c
libavcodec/h264_slice.c
+5
-5
No files found.
libavcodec/h264_slice.c
View file @
febbb3cb
...
...
@@ -404,7 +404,7 @@ static void copy_picture_range(H264Picture **to, H264Picture **from, int count,
int
i
;
for
(
i
=
0
;
i
<
count
;
i
++
)
{
a
ssert
((
IN_RANGE
(
from
[
i
],
old_base
,
sizeof
(
*
old_base
))
||
a
v_assert1
((
IN_RANGE
(
from
[
i
],
old_base
,
sizeof
(
*
old_base
))
||
IN_RANGE
(
from
[
i
],
old_base
->
DPB
,
sizeof
(
H264Picture
)
*
H264_MAX_PICTURE_COUNT
)
||
!
from
[
i
]));
...
...
@@ -1501,8 +1501,8 @@ int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl)
* We have to do that before the "dummy" in-between frame allocation,
* since that can modify h->cur_pic_ptr. */
if
(
h
->
first_field
)
{
a
ssert
(
h
->
cur_pic_ptr
);
a
ssert
(
h
->
cur_pic_ptr
->
f
.
buf
[
0
]);
a
v_assert0
(
h
->
cur_pic_ptr
);
a
v_assert0
(
h
->
cur_pic_ptr
->
f
.
buf
[
0
]);
assert
(
h
->
cur_pic_ptr
->
reference
!=
DELAYED_PIC_REF
);
/* Mark old field/frame as completed */
...
...
@@ -1604,8 +1604,8 @@ int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl)
* We're using that to see whether to continue decoding in that
* frame, or to allocate a new one. */
if
(
h
->
first_field
)
{
a
ssert
(
h
->
cur_pic_ptr
);
a
ssert
(
h
->
cur_pic_ptr
->
f
.
buf
[
0
]);
a
v_assert0
(
h
->
cur_pic_ptr
);
a
v_assert0
(
h
->
cur_pic_ptr
->
f
.
buf
[
0
]);
assert
(
h
->
cur_pic_ptr
->
reference
!=
DELAYED_PIC_REF
);
/* figure out if we have a complementary field pair */
...
...
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