[FFmpeg-devel] [PATCH] ffprobe: show bitmap subtitles size.
Nicolas George
nicolas.george at normalesup.org
Tue Sep 3 16:43:30 CEST 2013
Fix trac ticket #2930.
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
ffprobe.c | 11 +++++++++++
1 file changed, 11 insertions(+)
I believe no update on the schema is necessary, since width and height are
already declared for video.
I am a bit unsure about the "N/A" conformance to the schema, but the
declaration for packet.pos does not take it into account either.
diff --git a/ffprobe.c b/ffprobe.c
index 23f8ec1..0d5fb95 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("width", "N/A");
+ if (dec_ctx->height)
+ print_int("height", dec_ctx->height);
+ else
+ print_str("height", "N/A");
+ break;
}
} else {
print_str_opt("codec_type", "unknown");
--
1.8.4.rc3
More information about the ffmpeg-devel
mailing list