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
20ac916e
Commit
20ac916e
authored
Nov 02, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indeo3: release buffer before calling decode_plane
parent
b02116cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
indeo3.c
libavcodec/indeo3.c
+3
-3
No files found.
libavcodec/indeo3.c
View file @
20ac916e
...
...
@@ -1084,6 +1084,9 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
/* use BS_BUFFER flag for buffer switching */
ctx
->
buf_sel
=
(
ctx
->
frame_flags
>>
BS_BUFFER
)
&
1
;
if
(
ctx
->
frame
.
data
[
0
])
avctx
->
release_buffer
(
avctx
,
&
ctx
->
frame
);
/* decode luma plane */
if
((
res
=
decode_plane
(
ctx
,
avctx
,
ctx
->
planes
,
ctx
->
y_data_ptr
,
ctx
->
y_data_size
,
40
)))
return
res
;
...
...
@@ -1095,9 +1098,6 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
if
((
res
=
decode_plane
(
ctx
,
avctx
,
&
ctx
->
planes
[
2
],
ctx
->
v_data_ptr
,
ctx
->
v_data_size
,
10
)))
return
res
;
if
(
ctx
->
frame
.
data
[
0
])
avctx
->
release_buffer
(
avctx
,
&
ctx
->
frame
);
ctx
->
frame
.
reference
=
0
;
if
((
res
=
avctx
->
get_buffer
(
avctx
,
&
ctx
->
frame
))
<
0
)
{
av_log
(
ctx
->
avctx
,
AV_LOG_ERROR
,
"get_buffer() failed
\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