[FFmpeg-devel] [PATCH 5/5] srtdec: use the default format for snprintf
Jean First
jeanfirst at gmail.com
Sun Jan 1 22:07:33 CET 2012
Signed-off-by: Jean First <jeanfirst at gmail.com>
---
libavcodec/srtdec.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/srtdec.c b/libavcodec/srtdec.c
index aa73f4c..d98f499 100644
--- a/libavcodec/srtdec.c
+++ b/libavcodec/srtdec.c
@@ -109,7 +109,7 @@ static const char *srt_to_ass(AVCodecContext *avctx, char *out, char *out_end,
if (stack[sptr-1].param[i][0])
for (j=sptr-2; j>=0; j--)
if (stack[j].param[i][0]) {
- out += snprintf(out, out_end-out,
+ out += snprintf(out, out_end-out, "%s",
stack[j].param[i]);
break;
}
@@ -145,7 +145,7 @@ static const char *srt_to_ass(AVCodecContext *avctx, char *out, char *out_end,
}
for (i=0; i<PARAM_NUMBER; i++)
if (stack[sptr].param[i][0])
- out += snprintf(out, out_end-out,
+ out += snprintf(out, out_end-out, "%s",
stack[sptr].param[i]);
}
} else if (!buffer[1] && strspn(buffer, "bisu") == 1) {
--
1.7.7.3
More information about the ffmpeg-devel
mailing list