[FFmpeg-devel] [PATCH 4/5] srtdec: use the default format for snprintf
Jean First
jeanfirst at gmail.com
Sun Jan 1 16:26:14 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..bc3932f 100644
--- a/libavcodec/srtdec.c
+++ b/libavcodec/srtdec.c
@@ -110,7 +110,7 @@ static const char *srt_to_ass(AVCodecContext *avctx, char *out, char *out_end,
for (j=sptr-2; j>=0; j--)
if (stack[j].param[i][0]) {
out += snprintf(out, out_end-out,
- stack[j].param[i]);
+ stack[j].param[i], "%s");
break;
}
} else {
@@ -146,7 +146,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,
- stack[sptr].param[i]);
+ stack[sptr].param[i], "%s");
}
} else if (!buffer[1] && strspn(buffer, "bisu") == 1) {
out += snprintf(out, out_end-out,
--
1.7.7.3
More information about the ffmpeg-devel
mailing list