[FFmpeg-devel] [PATCH 4/5] srtdec: use the default format for snprintf

Clément Bœsch ubitux at gmail.com
Sun Jan 1 20:07:27 CET 2012


On Sun, Jan 01, 2012 at 04:26:14PM +0100, Jean First wrote:
> 
> 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");

Didn't you mean "%s", stack[...] instead?

[...]

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120101/17c55c1d/attachment.asc>


More information about the ffmpeg-devel mailing list