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
1f796262
Commit
1f796262
authored
Oct 17, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/muxing: remove video_outbuf unused and useless code
parent
709628aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
15 deletions
+1
-15
muxing.c
doc/examples/muxing.c
+1
-15
No files found.
doc/examples/muxing.c
View file @
1f796262
...
...
@@ -187,8 +187,7 @@ static void close_audio(AVFormatContext *oc, AVStream *st)
static
AVFrame
*
frame
;
static
AVPicture
src_picture
,
dst_picture
;
static
uint8_t
*
video_outbuf
;
static
int
frame_count
,
video_outbuf_size
;
static
int
frame_count
;
/* Add a video output stream. */
static
AVStream
*
add_video_stream
(
AVFormatContext
*
oc
,
AVCodec
**
codec
,
...
...
@@ -257,18 +256,6 @@ static void open_video(AVFormatContext *oc, AVCodec *codec, AVStream *st)
exit
(
1
);
}
video_outbuf
=
NULL
;
if
(
!
(
oc
->
oformat
->
flags
&
AVFMT_RAWPICTURE
))
{
/* Allocate output buffer. */
/* XXX: API change will be done. */
/* Buffers passed into lav* can be allocated any way you prefer,
* as long as they're aligned enough for the architecture, and
* they're freed appropriately (such as using av_free for buffers
* allocated with av_malloc). */
video_outbuf_size
=
200000
;
video_outbuf
=
av_malloc
(
video_outbuf_size
);
}
/* allocate and init a re-usable frame */
frame
=
avcodec_alloc_frame
();
if
(
!
frame
)
{
...
...
@@ -406,7 +393,6 @@ static void close_video(AVFormatContext *oc, AVStream *st)
av_free
(
src_picture
.
data
[
0
]);
av_free
(
dst_picture
.
data
[
0
]);
av_free
(
frame
);
av_free
(
video_outbuf
);
}
/**************************************************************/
...
...
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