[FFmpeg-cvslog] Show subtitle resolution in avcodec_string().

Carl Eugen Hoyos git at videolan.org
Wed Sep 4 01:58:35 CEST 2013


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Wed Sep  4 01:04:01 2013 +0200| [6fcfafff8456942172a4b610454175a5d289270b] | committer: Carl Eugen Hoyos

Show subtitle resolution in avcodec_string().

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6fcfafff8456942172a4b610454175a5d289270b
---

 libavcodec/utils.c |    5 +++++
 1 file changed, 5 insertions(+)

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-cvslog mailing list