Browse Source

Merge commit '9f3a70c44224ed92d91df65bb9470a2649e7d019'

* commit '9f3a70c44224ed92d91df65bb9470a2649e7d019':
  dump: print the original coded dimensions when available

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.5
Michael Niedermayer 11 years ago
parent
commit
5f43a7957b
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      libavcodec/utils.c

+ 6
- 0
libavcodec/utils.c View File

@@ -3032,6 +3032,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,


Loading…
Cancel
Save