diff options
author | Rodger Combs <rodger.combs@gmail.com> | 2016-10-03 21:46:53 -0500 |
---|---|---|
committer | Rodger Combs <rodger.combs@gmail.com> | 2016-10-24 01:24:22 -0500 |
commit | ba53504e57b6dc92726086d0b8f50fc26069f327 (patch) | |
tree | ebe6c34f933d67a3a41ca2d3f06cc93510b9ebc4 | |
parent | f271a9bd991be4ce8d230b7dc6a0e56ca64b195c (diff) | |
download | ffmpeg-ba53504e57b6dc92726086d0b8f50fc26069f327.tar.gz |
lavc/utils: avcodec_string: dump field order when known
-rw-r--r-- | libavcodec/utils.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 7c26485686..87de15fc62 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -3254,6 +3254,20 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode) av_get_colorspace_name(enc->colorspace)); } + if (enc->field_order != AV_FIELD_UNKNOWN) { + const char *field_order = "progressive"; + if (enc->field_order == AV_FIELD_TT) + field_order = "top first"; + else if (enc->field_order == AV_FIELD_BB) + field_order = "bottom first"; + else if (enc->field_order == AV_FIELD_TB) + field_order = "top coded first (swapped)"; + else if (enc->field_order == AV_FIELD_BT) + field_order = "bottom coded first (swapped)"; + + av_strlcatf(detail, sizeof(detail), "%s, ", field_order); + } + if (av_log_get_level() >= AV_LOG_VERBOSE && enc->chroma_sample_location != AVCHROMA_LOC_UNSPECIFIED) av_strlcatf(detail, sizeof(detail), "%s, ", |