Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
93f6d047
Commit
93f6d047
authored
13 years ago
by
Luca Barbato
Browse files
Options
Downloads
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
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavformat/output-example.c
+2
-2
2 additions, 2 deletions
libavformat/output-example.c
with
2 additions
and
2 deletions
libavformat/output-example.c
+
2
−
2
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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment