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
01100415
Commit
01100415
authored
May 08, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/utils: change a few asserts to av_assert0()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
36583d23
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
utils.c
libavcodec/utils.c
+3
-3
No files found.
libavcodec/utils.c
View file @
01100415
...
...
@@ -554,7 +554,7 @@ void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic){
InternalBuffer
*
buf
,
*
last
;
AVCodecInternal
*
avci
=
s
->
internal
;
a
ssert
(
s
->
codec_type
==
AVMEDIA_TYPE_VIDEO
);
a
v_assert0
(
s
->
codec_type
==
AVMEDIA_TYPE_VIDEO
);
assert
(
pic
->
type
==
FF_BUFFER_TYPE_INTERNAL
);
assert
(
avci
->
buffer_count
);
...
...
@@ -566,7 +566,7 @@ void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic){
if
(
buf
->
data
[
0
]
==
pic
->
data
[
0
])
break
;
}
a
ssert
(
i
<
avci
->
buffer_count
);
a
v_assert0
(
i
<
avci
->
buffer_count
);
avci
->
buffer_count
--
;
last
=
&
avci
->
buffer
[
avci
->
buffer_count
];
...
...
@@ -589,7 +589,7 @@ int avcodec_default_reget_buffer(AVCodecContext *s, AVFrame *pic){
AVFrame
temp_pic
;
int
i
;
a
ssert
(
s
->
codec_type
==
AVMEDIA_TYPE_VIDEO
);
a
v_assert0
(
s
->
codec_type
==
AVMEDIA_TYPE_VIDEO
);
if
(
pic
->
data
[
0
]
&&
(
pic
->
width
!=
s
->
width
||
pic
->
height
!=
s
->
height
||
pic
->
format
!=
s
->
pix_fmt
))
{
av_log
(
s
,
AV_LOG_WARNING
,
"Picture changed from size:%dx%d fmt:%s to size:%dx%d fmt:%s in reget buffer()
\n
"
,
...
...
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