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
794cea58
Commit
794cea58
authored
Nov 06, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/demuxing: dump input information *after* trying to open audio stream
Implement more logical code flow.
parent
c9956449
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
demuxing.c
doc/examples/demuxing.c
+3
-3
No files found.
doc/examples/demuxing.c
View file @
794cea58
...
@@ -243,9 +243,6 @@ int main (int argc, char **argv)
...
@@ -243,9 +243,6 @@ int main (int argc, char **argv)
video_dst_bufsize
=
ret
;
video_dst_bufsize
=
ret
;
}
}
/* dump input information to stderr */
av_dump_format
(
fmt_ctx
,
0
,
src_filename
,
0
);
if
(
open_codec_context
(
&
audio_stream_idx
,
fmt_ctx
,
AVMEDIA_TYPE_AUDIO
)
>=
0
)
{
if
(
open_codec_context
(
&
audio_stream_idx
,
fmt_ctx
,
AVMEDIA_TYPE_AUDIO
)
>=
0
)
{
int
nb_planes
;
int
nb_planes
;
...
@@ -268,6 +265,9 @@ int main (int argc, char **argv)
...
@@ -268,6 +265,9 @@ int main (int argc, char **argv)
}
}
}
}
/* dump input information to stderr */
av_dump_format
(
fmt_ctx
,
0
,
src_filename
,
0
);
if
(
!
audio_stream
&&
!
video_stream
)
{
if
(
!
audio_stream
&&
!
video_stream
)
{
fprintf
(
stderr
,
"Could not find audio or video stream in the input, aborting
\n
"
);
fprintf
(
stderr
,
"Could not find audio or video stream in the input, aborting
\n
"
);
ret
=
1
;
ret
=
1
;
...
...
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