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
9ab8f373
Commit
9ab8f373
authored
Jan 19, 2014
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/muxing: remove redundant {}
parent
b933c72b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
muxing.c
doc/examples/muxing.c
+4
-6
No files found.
doc/examples/muxing.c
View file @
9ab8f373
...
...
@@ -518,9 +518,9 @@ int main(int argc, char **argv)
printf
(
"Could not deduce output format from file extension: using MPEG.
\n
"
);
avformat_alloc_output_context2
(
&
oc
,
NULL
,
"mpeg"
,
filename
);
}
if
(
!
oc
)
{
if
(
!
oc
)
return
1
;
}
fmt
=
oc
->
oformat
;
/* Add the audio and video streams using the default format codecs
...
...
@@ -528,12 +528,10 @@ int main(int argc, char **argv)
video_st
=
NULL
;
audio_st
=
NULL
;
if
(
fmt
->
video_codec
!=
AV_CODEC_ID_NONE
)
{
if
(
fmt
->
video_codec
!=
AV_CODEC_ID_NONE
)
video_st
=
add_stream
(
oc
,
&
video_codec
,
fmt
->
video_codec
);
}
if
(
fmt
->
audio_codec
!=
AV_CODEC_ID_NONE
)
{
if
(
fmt
->
audio_codec
!=
AV_CODEC_ID_NONE
)
audio_st
=
add_stream
(
oc
,
&
audio_codec
,
fmt
->
audio_codec
);
}
/* Now that all the parameters are set, we can open the audio and
* video codecs and allocate the necessary encode buffers. */
...
...
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