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
9833a406
Commit
9833a406
authored
Jul 20, 2016
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples: Properly free AVCodecContext
parent
0e0538ae
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
avcodec.c
doc/examples/avcodec.c
+4
-8
No files found.
doc/examples/avcodec.c
View file @
9833a406
...
...
@@ -213,8 +213,7 @@ static void audio_encode_example(const char *filename)
av_freep
(
&
samples
);
av_frame_free
(
&
frame
);
avcodec_close
(
c
);
av_free
(
c
);
avcodec_free_context
(
&
c
);
}
/*
...
...
@@ -305,8 +304,7 @@ static void audio_decode_example(const char *outfilename, const char *filename)
fclose
(
outfile
);
fclose
(
f
);
avcodec_close
(
c
);
av_free
(
c
);
avcodec_free_context
(
&
c
);
av_frame_free
(
&
decoded_frame
);
}
...
...
@@ -428,8 +426,7 @@ static void video_encode_example(const char *filename)
fwrite
(
endcode
,
1
,
sizeof
(
endcode
),
f
);
fclose
(
f
);
avcodec_close
(
c
);
av_free
(
c
);
avcodec_free_context
(
&
c
);
av_freep
(
&
picture
->
data
[
0
]);
av_frame_free
(
&
picture
);
printf
(
"
\n
"
);
...
...
@@ -565,8 +562,7 @@ static void video_decode_example(const char *outfilename, const char *filename)
fclose
(
f
);
avcodec_close
(
c
);
av_free
(
c
);
avcodec_free_context
(
&
c
);
av_frame_free
(
&
picture
);
printf
(
"
\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