[FFmpeg-cvslog] examples/demuxing: dump input information *after* trying to open audio stream
Stefano Sabatini
git at videolan.org
Tue Nov 6 01:17:59 CET 2012
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Tue Nov 6 01:05:14 2012 +0100| [794cea588cc58d82d420ac4c57754a728654dc43] | committer: Stefano Sabatini
examples/demuxing: dump input information *after* trying to open audio stream
Implement more logical code flow.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=794cea588cc58d82d420ac4c57754a728654dc43
---
doc/examples/demuxing.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/doc/examples/demuxing.c b/doc/examples/demuxing.c
index 22b7060..aa8d16e 100644
--- a/doc/examples/demuxing.c
+++ b/doc/examples/demuxing.c
@@ -243,9 +243,6 @@ int main (int argc, char **argv)
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) {
int nb_planes;
@@ -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) {
fprintf(stderr, "Could not find audio or video stream in the input, aborting\n");
ret = 1;
More information about the ffmpeg-cvslog
mailing list