[FFmpeg-devel] [PATCH]Show subtitle resolution in avcodec_string()
Carl Eugen Hoyos
cehoyos at ag.or.at
Tue Sep 3 10:10:11 CEST 2013
Hi!
Attached patch shows the user the problem with files like from ticket #679 or
#2930.
Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 4e510e6..497cf15 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;
}
More information about the ffmpeg-devel
mailing list