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
a0877648
Commit
a0877648
authored
Apr 21, 2019
by
Jun Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/avio_reading: Use avio_context_free() to free AVIOContext
Signed-off-by:
Jun Zhao
<
barryjzhao@tencent.com
>
parent
26fd40b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
avio_reading.c
doc/examples/avio_reading.c
+4
-3
No files found.
doc/examples/avio_reading.c
View file @
a0877648
...
@@ -117,11 +117,12 @@ int main(int argc, char *argv[])
...
@@ -117,11 +117,12 @@ int main(int argc, char *argv[])
end:
end:
avformat_close_input
(
&
fmt_ctx
);
avformat_close_input
(
&
fmt_ctx
);
/* note: the internal buffer could have changed, and be != avio_ctx_buffer */
/* note: the internal buffer could have changed, and be != avio_ctx_buffer */
if
(
avio_ctx
)
{
if
(
avio_ctx
)
av_freep
(
&
avio_ctx
->
buffer
);
av_freep
(
&
avio_ctx
->
buffer
);
av_freep
(
&
avio_ctx
);
avio_context_free
(
&
avio_ctx
);
}
av_file_unmap
(
buffer
,
buffer_size
);
av_file_unmap
(
buffer
,
buffer_size
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
...
...
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