Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
93f6d047
Commit
93f6d047
authored
Mar 29, 2012
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avf: make the example output the proper message
av_dump_format needs the codecs opened in order to print them.
parent
28db30aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
output-example.c
libavformat/output-example.c
+2
-2
No files found.
libavformat/output-example.c
View file @
93f6d047
...
@@ -464,8 +464,6 @@ int main(int argc, char **argv)
...
@@ -464,8 +464,6 @@ int main(int argc, char **argv)
audio_st
=
add_audio_stream
(
oc
,
fmt
->
audio_codec
);
audio_st
=
add_audio_stream
(
oc
,
fmt
->
audio_codec
);
}
}
av_dump_format
(
oc
,
0
,
filename
,
1
);
/* now that all the parameters are set, we can open the audio and
/* now that all the parameters are set, we can open the audio and
video codecs and allocate the necessary encode buffers */
video codecs and allocate the necessary encode buffers */
if
(
video_st
)
if
(
video_st
)
...
@@ -473,6 +471,8 @@ int main(int argc, char **argv)
...
@@ -473,6 +471,8 @@ int main(int argc, char **argv)
if
(
audio_st
)
if
(
audio_st
)
open_audio
(
oc
,
audio_st
);
open_audio
(
oc
,
audio_st
);
av_dump_format
(
oc
,
0
,
filename
,
1
);
/* open the output file, if needed */
/* open the output file, if needed */
if
(
!
(
fmt
->
flags
&
AVFMT_NOFILE
))
{
if
(
!
(
fmt
->
flags
&
AVFMT_NOFILE
))
{
if
(
avio_open
(
&
oc
->
pb
,
filename
,
AVIO_FLAG_WRITE
)
<
0
)
{
if
(
avio_open
(
&
oc
->
pb
,
filename
,
AVIO_FLAG_WRITE
)
<
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