---
 libavcodec/utils.c |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 044413a..f2dd357 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1777,6 +1777,20 @@ void avcodec_string(char *buf, int buf_size, 
AVCodecContext *enc, int encode)
             snprintf(buf + strlen(buf), buf_size - strlen(buf),
                      ", %dx%d",
                      enc->width, enc->height);
+
+            if (enc->field_order != AV_FIELD_UNKNOWN) {
+                snprintf(buf + strlen(buf), buf_size - strlen(buf),
+                         "%s",
+                         enc->field_order == AV_FIELD_PROGRESSIVE ? "p" : "i");
+                if (enc->field_order != AV_FIELD_PROGRESSIVE &&
+                    av_log_get_level() >= AV_LOG_DEBUG) {
+                    snprintf(buf + strlen(buf), buf_size - strlen(buf),
+                             "%s",
+                             enc->field_order == AV_FIELD_TT ||
+                             enc->field_order == AV_FIELD_TB ? " tff" : " 
bff");
+                }
+            }
+
             if (enc->sample_aspect_ratio.num) {
                 av_reduce(&display_aspect_ratio.num, &display_aspect_ratio.den,
                           enc->width * enc->sample_aspect_ratio.num,
-- 
1.7.9.5

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to