Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --unified --recursive --text mjpegtools-2.1.0__/lavtools/jpeg2yuv.c mjpegtools-2.1.0_new/lavtools/jpeg2yuv.c
- --- mjpegtools-2.1.0__/lavtools/jpeg2yuv.c 2008-01-06 10:28:00.000000000 +0700
- +++ mjpegtools-2.1.0_new/lavtools/jpeg2yuv.c 2021-05-03 22:36:39.305610545 +0700
- @@ -451,7 +451,7 @@
- if (firstjpeg) {
- p = firstjpeg;
- - sprintf(jpegname, firstjpeg);
- + sprintf(jpegname, "%s", firstjpeg);
- firstjpeg = NULL;
- }
- else {
- diff --unified --recursive --text mjpegtools-2.1.0__/lavtools/lav_io.c mjpegtools-2.1.0_new/lavtools/lav_io.c
- --- mjpegtools-2.1.0__/lavtools/lav_io.c 2007-09-10 05:16:53.000000000 +0700
- +++ mjpegtools-2.1.0_new/lavtools/lav_io.c 2021-05-03 22:09:25.671303996 +0700
- @@ -926,7 +926,7 @@
- strcat(errmsg, ", quicktime");
- #endif
- strcat(errmsg, ").\n");
- - fprintf(stderr, errmsg);
- + fprintf(stderr, "%s", errmsg);
- free(lav_fd);
- internal_error = ERROR_FORMAT; /* Format not recognized */
- return 0;
- diff --unified --recursive --text mjpegtools-2.1.0__/lavtools/lavaddwav.c mjpegtools-2.1.0_new/lavtools/lavaddwav.c
- --- mjpegtools-2.1.0__/lavtools/lavaddwav.c 2005-11-22 12:33:16.000000000 +0700
- +++ mjpegtools-2.1.0_new/lavtools/lavaddwav.c 2021-05-03 22:42:46.111067764 +0700
- @@ -352,7 +352,7 @@
- {
- if( imulti_out )
- /* build output filename */
- - sprintf(chOutFile, argv[optind+2], iOutNum++);
- + sprintf(chOutFile, "%s%i", argv[optind+2], iOutNum++);
- /* Create output file */
- lav_out = lav_open_output_file(chOutFile,
- @@ -576,7 +576,7 @@
- if( ulOutputBytes == 0 )
- {
- /* build output filename */
- - sprintf(chOutFile, argv[optind+2], iOutNum++);
- + sprintf(chOutFile, "%s%i", argv[optind+2], iOutNum++);
- /* Create output file */
- lav_out = lav_open_output_file(chOutFile,
- diff --unified --recursive --text mjpegtools-2.1.0__/lavtools/lavtrans.c mjpegtools-2.1.0_new/lavtools/lavtrans.c
- --- mjpegtools-2.1.0__/lavtools/lavtrans.c 2005-10-03 00:01:30.000000000 +0700
- +++ mjpegtools-2.1.0_new/lavtools/lavtrans.c 2021-05-03 22:09:29.964701223 +0700
- @@ -275,7 +275,7 @@
- if (process_image_frame != -1)
- {
- nv = el_get_video_frame(vbuff, process_image_frame, &el);
- - sprintf(imgfname,outfile);
- + sprintf(imgfname,"%s", outfile);
- imgfd = fopen(imgfname,"wb");
- if (imgfd==0) system_error("opening image file","fopen");
- res = fwrite(vbuff,nv,1,imgfd);
- @@ -307,7 +307,7 @@
- break;
- case 'i':
- - sprintf(imgfname,outfile,nframe);
- + sprintf(imgfname,"%s%i", outfile,nframe);
- imgfd = fopen(imgfname,"wb");
- if (imgfd==0) system_error("opening image file","fopen");
- res = fwrite(vbuff,nv,1,imgfd);
- diff --unified --recursive --text mjpegtools-2.1.0__/lavtools/yuv2lav.c mjpegtools-2.1.0_new/lavtools/yuv2lav.c
- --- mjpegtools-2.1.0__/lavtools/yuv2lav.c 2010-12-31 15:06:33.000000000 +0700
- +++ mjpegtools-2.1.0_new/lavtools/yuv2lav.c 2021-05-03 22:56:24.844266970 +0700
- @@ -330,7 +330,7 @@
- if (strstr(param_output,"%"))
- {
- char buff[256];
- - sprintf(buff, param_output, filenum++);
- + sprintf(buff, "%s%i", param_output, filenum++);
- output = lav_open_output_file (buff, param_format,
- y4m_si_get_width(&streaminfo),
- y4m_si_get_height(&streaminfo),
- @@ -408,7 +408,7 @@
- mjpeg_error("Closing output file: %s",lav_strerror());
- exit(1);
- }
- - sprintf(buff, param_output, filenum++);
- + sprintf(buff, "%s%i", param_output, filenum++);
- output = lav_open_output_file (buff, param_format,
- y4m_si_get_width(&streaminfo),
- y4m_si_get_height(&streaminfo),
- diff --unified --recursive --text mjpegtools-2.1.0__/mplex/main.cpp mjpegtools-2.1.0_new/mplex/main.cpp
- --- mjpegtools-2.1.0__/mplex/main.cpp 2011-12-11 15:53:59.000000000 +0700
- +++ mjpegtools-2.1.0_new/mplex/main.cpp 2021-05-03 23:03:21.748287013 +0700
- @@ -614,7 +614,7 @@
- if( flag_table[flag].longname != 0 )
- message += sep;
- }
- - mjpeg_error( message.c_str() );
- + mjpeg_error( "%s", message.c_str() );
- return false;
- }
- diff --unified --recursive --text mjpegtools-2.1.0__/yuvfilters/yuvfilters.h mjpegtools-2.1.0_new/yuvfilters/yuvfilters.h
- --- mjpegtools-2.1.0__/yuvfilters/yuvfilters.h 2005-02-28 05:46:56.000000000 +0700
- +++ mjpegtools-2.1.0_new/yuvfilters/yuvfilters.h 2021-05-03 23:07:52.398224866 +0700
- @@ -34,8 +34,8 @@
- #ifdef MJPEGTOOLS
- # define perror(MSG) mjpeg_error("%s: %s", MSG, strerror(errno))
- -# define WERROR(MSG) mjpeg_error(MSG)
- -# define WERRORL(MSG) mjpeg_error(MSG)
- +# define WERROR(MSG) mjpeg_error("%s", MSG)
- +# define WERRORL(MSG) mjpeg_error("%s", MSG)
- # define WWARN(MSG) mjpeg_warn(MSG)
- #else
- # define WERROR(MSG) write(2, MSG "\n", sizeof MSG)
- diff --unified --recursive --text mjpegtools-2.1.0__/yuvfilters/yuvkineco.c mjpegtools-2.1.0_new/yuvfilters/yuvkineco.c
- --- mjpegtools-2.1.0__/yuvfilters/yuvkineco.c 2005-12-05 12:06:06.000000000 +0700
- +++ mjpegtools-2.1.0_new/yuvfilters/yuvkineco.c 2021-05-04 00:32:23.719589714 +0700
- @@ -48,7 +48,7 @@
- } else {
- #ifdef MJPEGTOOLS
- buf[n] = '\0';
- - mjpeg_debug(buf);
- + mjpeg_debug("%s", buf);
- #else
- fputs(buf, stderr);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement