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
0c2aaa88
Commit
0c2aaa88
authored
Apr 28, 2006
by
Loren Merritt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
memory leak.
Originally committed as revision 5331 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
d1c9b762
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
ffv1.c
libavcodec/ffv1.c
+4
-10
No files found.
libavcodec/ffv1.c
View file @
0c2aaa88
...
...
@@ -688,7 +688,8 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size,
}
}
static
void
common_end
(
FFV1Context
*
s
){
static
int
common_end
(
AVCodecContext
*
avctx
){
FFV1Context
*
s
=
avctx
->
priv_data
;
int
i
;
for
(
i
=
0
;
i
<
s
->
plane_count
;
i
++
){
...
...
@@ -696,13 +697,6 @@ static void common_end(FFV1Context *s){
av_freep
(
&
p
->
state
);
}
}
static
int
encode_end
(
AVCodecContext
*
avctx
)
{
FFV1Context
*
s
=
avctx
->
priv_data
;
common_end
(
s
);
return
0
;
}
...
...
@@ -1018,7 +1012,7 @@ AVCodec ffv1_decoder = {
sizeof
(
FFV1Context
),
decode_init
,
NULL
,
NULL
,
common_end
,
decode_frame
,
CODEC_CAP_DR1
/*| CODEC_CAP_DRAW_HORIZ_BAND*/
,
NULL
...
...
@@ -1032,6 +1026,6 @@ AVCodec ffv1_encoder = {
sizeof
(
FFV1Context
),
encode_init
,
encode_frame
,
encode
_end
,
common
_end
,
};
#endif
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