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
f91b7d80
Commit
f91b7d80
authored
Jul 03, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mdutils: print error message on error get_buffer related errors
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
86e107a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
cmdutils.c
cmdutils.c
+4
-1
No files found.
cmdutils.c
View file @
f91b7d80
...
...
@@ -1254,6 +1254,7 @@ static int alloc_buffer(FrameBuffer **pool, AVCodecContext *s, FrameBuffer **pbu
if
((
ret
=
av_image_alloc
(
buf
->
base
,
buf
->
linesize
,
w
,
h
,
s
->
pix_fmt
,
32
))
<
0
)
{
av_freep
(
&
buf
);
av_log
(
s
,
AV_LOG_ERROR
,
"alloc_buffer: av_image_alloc() failed
\n
"
);
return
ret
;
}
/* XXX this shouldn't be needed, but some tests break without this line
...
...
@@ -1289,8 +1290,10 @@ int codec_get_buffer(AVCodecContext *s, AVFrame *frame)
FrameBuffer
*
buf
;
int
ret
,
i
;
if
(
av_image_check_size
(
s
->
width
,
s
->
height
,
0
,
s
)
||
s
->
pix_fmt
<
0
)
if
(
av_image_check_size
(
s
->
width
,
s
->
height
,
0
,
s
)
||
s
->
pix_fmt
<
0
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"codec_get_buffer: image parameters invalid
\n
"
);
return
-
1
;
}
if
(
!*
pool
&&
(
ret
=
alloc_buffer
(
pool
,
s
,
pool
))
<
0
)
return
ret
;
...
...
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