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
93931143
Commit
93931143
authored
Oct 13, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: return s->get_buffer() error code if it errors out
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
f58f9023
Hide 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 @
93931143
...
@@ -621,7 +621,7 @@ void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic)
...
@@ -621,7 +621,7 @@ void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic)
int
avcodec_default_reget_buffer
(
AVCodecContext
*
s
,
AVFrame
*
pic
)
int
avcodec_default_reget_buffer
(
AVCodecContext
*
s
,
AVFrame
*
pic
)
{
{
AVFrame
temp_pic
;
AVFrame
temp_pic
;
int
i
;
int
i
,
ret
;
av_assert0
(
s
->
codec_type
==
AVMEDIA_TYPE_VIDEO
);
av_assert0
(
s
->
codec_type
==
AVMEDIA_TYPE_VIDEO
);
...
@@ -655,8 +655,8 @@ int avcodec_default_reget_buffer(AVCodecContext *s, AVFrame *pic)
...
@@ -655,8 +655,8 @@ int avcodec_default_reget_buffer(AVCodecContext *s, AVFrame *pic)
pic
->
data
[
i
]
=
pic
->
base
[
i
]
=
NULL
;
pic
->
data
[
i
]
=
pic
->
base
[
i
]
=
NULL
;
pic
->
opaque
=
NULL
;
pic
->
opaque
=
NULL
;
/* Allocate new frame */
/* Allocate new frame */
if
(
s
->
get_buffer
(
s
,
pic
))
if
(
(
ret
=
s
->
get_buffer
(
s
,
pic
)
))
return
-
1
;
return
ret
;
/* Copy image data from old buffer to new buffer */
/* Copy image data from old buffer to new buffer */
av_picture_copy
((
AVPicture
*
)
pic
,
(
AVPicture
*
)
&
temp_pic
,
s
->
pix_fmt
,
s
->
width
,
av_picture_copy
((
AVPicture
*
)
pic
,
(
AVPicture
*
)
&
temp_pic
,
s
->
pix_fmt
,
s
->
width
,
s
->
height
);
s
->
height
);
...
...
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