diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-09-26 15:24:07 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-10-08 18:17:49 +0100 |
commit | 9f3a70c44224ed92d91df65bb9470a2649e7d019 (patch) | |
tree | 898403bce8a3ddc0fc01ad915e332dc52fc07960 /libavcodec | |
parent | 41e86146e7240f9d42e8cdb86a94bb3eb2bbe15f (diff) | |
download | ffmpeg-9f3a70c44224ed92d91df65bb9470a2649e7d019.tar.gz |
dump: print the original coded dimensions when available
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/utils.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 9e8f541883..89f249f093 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1950,6 +1950,12 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode) "%dx%d", enc->width, enc->height); + if (av_log_get_level() >= AV_LOG_VERBOSE && + (enc->width != enc->coded_width || + enc->height != enc->coded_height)) + snprintf(buf + strlen(buf), buf_size - strlen(buf), + " (%dx%d)", enc->coded_width, enc->coded_height); + if (enc->sample_aspect_ratio.num) { av_reduce(&display_aspect_ratio.num, &display_aspect_ratio.den, enc->width * enc->sample_aspect_ratio.num, |