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
2a00ef5d
Commit
2a00ef5d
authored
Apr 20, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/api-flac-test: clear callers context with close_*
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
be70c79a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
api-flac-test.c
libavcodec/api-flac-test.c
+8
-8
No files found.
libavcodec/api-flac-test.c
View file @
2a00ef5d
...
...
@@ -233,17 +233,17 @@ static int run_test(AVCodec *enc, AVCodec *dec, AVCodecContext *enc_ctx,
return
0
;
}
static
int
close_encoder
(
AVCodecContext
*
enc_ctx
)
static
int
close_encoder
(
AVCodecContext
*
*
enc_ctx
)
{
avcodec_close
(
enc_ctx
);
av_freep
(
&
enc_ctx
);
avcodec_close
(
*
enc_ctx
);
av_freep
(
enc_ctx
);
return
0
;
}
static
int
close_decoder
(
AVCodecContext
*
dec_ctx
)
static
int
close_decoder
(
AVCodecContext
*
*
dec_ctx
)
{
avcodec_close
(
dec_ctx
);
av_freep
(
&
dec_ctx
);
avcodec_close
(
*
dec_ctx
);
av_freep
(
dec_ctx
);
return
0
;
}
...
...
@@ -281,8 +281,8 @@ int main(void)
return
1
;
if
(
run_test
(
enc
,
dec
,
enc_ctx
,
dec_ctx
)
!=
0
)
return
1
;
close_encoder
(
enc_ctx
);
close_decoder
(
dec_ctx
);
close_encoder
(
&
enc_ctx
);
close_decoder
(
&
dec_ctx
);
}
}
...
...
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