1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

dump: print the original coded dimensions when available

This commit is contained in:
Vittorio Giovara 2014-09-26 15:24:07 +01:00
parent 41e86146e7
commit 9f3a70c442

View File

@ -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,