summaryrefslogtreecommitdiff
path: root/ffprobe.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2013-09-03 16:39:02 +0200
committerNicolas George <nicolas.george@normalesup.org>2013-09-04 16:36:28 +0200
commit83635ac67bc3429c147e214f0f44325b63832384 (patch)
treed1c7f63d01ae233bf21efa60360a37be334af856 /ffprobe.c
parentd7ccfe58e3a31d10286cb6ef1ab6cf5b7fa455fe (diff)
ffprobe: show bitmap subtitles size.
Fix trac ticket #2930.
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ffprobe.c b/ffprobe.c
index 23f8ec11c1..17ec7e2631 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -1711,6 +1711,17 @@ static void show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_i
print_int("channels", dec_ctx->channels);
print_int("bits_per_sample", av_get_bits_per_sample(dec_ctx->codec_id));
break;
+
+ case AVMEDIA_TYPE_SUBTITLE:
+ if (dec_ctx->width)
+ print_int("width", dec_ctx->width);
+ else
+ print_str_opt("width", "N/A");
+ if (dec_ctx->height)
+ print_int("height", dec_ctx->height);
+ else
+ print_str_opt("height", "N/A");
+ break;
}
} else {
print_str_opt("codec_type", "unknown");