diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-09-04 01:04:01 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-09-04 01:04:01 +0200 |
commit | 6fcfafff8456942172a4b610454175a5d289270b (patch) | |
tree | a74fb6f239eb37432da9a90f1c7a5ed1073735c1 | |
parent | d21e496cf5ae90429e28cd11e18436ca2ddfb13b (diff) | |
download | ffmpeg-6fcfafff8456942172a4b610454175a5d289270b.tar.gz |
Show subtitle resolution in avcodec_string().
-rw-r--r-- | libavcodec/utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 4e510e69e4..497cf15e10 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -2668,6 +2668,11 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode) enc->time_base.num / g, enc->time_base.den / g); } break; + case AVMEDIA_TYPE_SUBTITLE: + if (enc->width) + snprintf(buf + strlen(buf), buf_size - strlen(buf), + ", %dx%d", enc->width, enc->height); + break; default: return; } |