summaryrefslogtreecommitdiff
path: root/ffprobe.c
diff options
context:
space:
mode:
authorRodger Combs <rodger.combs@gmail.com>2016-10-03 23:49:09 -0500
committerRodger Combs <rodger.combs@gmail.com>2016-10-24 01:24:23 -0500
commit54350f06e11727f255e3d1829cb1afde49931d8b (patch)
tree523e5170301b627dc24cc3c4b08512d61a07da95 /ffprobe.c
parentba53504e57b6dc92726086d0b8f50fc26069f327 (diff)
ffprobe: report field order for video streams
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/ffprobe.c b/ffprobe.c
index 662137c704..7cd003482c 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -2268,6 +2268,19 @@ static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_id
else
print_str_opt("chroma_location", av_chroma_location_name(par->chroma_location));
+ if (par->field_order == AV_FIELD_PROGRESSIVE)
+ print_str("field_order", "progressive");
+ else if (par->field_order == AV_FIELD_TT)
+ print_str("field_order", "tt");
+ else if (par->field_order == AV_FIELD_BB)
+ print_str("field_order", "bb");
+ else if (par->field_order == AV_FIELD_TB)
+ print_str("field_order", "tb");
+ else if (par->field_order == AV_FIELD_BT)
+ print_str("field_order", "bt");
+ else
+ print_str_opt("field_order", "unknown");
+
#if FF_API_PRIVATE_OPT
if (dec_ctx && dec_ctx->timecode_frame_start >= 0) {
char tcbuf[AV_TIMECODE_STR_SIZE];