Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2012-09-19 00:09:46 +0400
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2012-09-19 00:38:47 +0400
commit8e2a950b297b97605e97c454363f2f8555b004f0 (patch)
tree768b4ed3490d27ec94414e5b3a99ec620f3d223c /ffprobe.c
parentb89c16e73eef30b7ce95bd455d9b419b383d9409 (diff)
ffprobe: Add a few common disposition cases
This info is crucial in knowing which stream to pick in an automated setup. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ffprobe.c b/ffprobe.c
index a0aee8352d..771c11d43c 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -1665,6 +1665,10 @@ static void show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_i
print_str("codec_tag_string", val_str);
print_fmt("codec_tag", "0x%04x", dec_ctx->codec_tag);
+ /* Print useful disposition */
+ print_int("default", !!(stream->disposition & AV_DISPOSITION_DEFAULT));
+ print_int("forced", !!(stream->disposition & AV_DISPOSITION_FORCED));
+
switch (dec_ctx->codec_type) {
case AVMEDIA_TYPE_VIDEO:
print_int("width", dec_ctx->width);
@@ -1693,6 +1697,8 @@ static void show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_i
} else {
print_str_opt("timecode", "N/A");
}
+ print_int("attached_pic",
+ !!(stream->disposition & AV_DISPOSITION_ATTACHED_PIC));
break;
case AVMEDIA_TYPE_AUDIO: