diff mbox series

[FFmpeg-devel] fix broken links to msdn documentation

Message ID 242be27756b6419eb0b8563d9b9374bf83f3c311.1620611840.git.pross@xvid.org
State Accepted
Commit b5ea0980c5c78df25277f9a1baf640b60184ab61
Headers show
Series [FFmpeg-devel] fix broken links to msdn documentation | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate fail Make fate failed
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate warning Make fate failed

Commit Message

Peter Ross May 10, 2021, 1:58 a.m. UTC
---
 compat/msvcrt/snprintf.c | 2 +-
 libavformat/mmst.c       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

will apply in a few days if there are no objections here

Comments

Moritz Barsnick May 18, 2021, 8:46 a.m. UTC | #1
On Mon, May 10, 2021 at 11:58:23 +1000, Peter Ross wrote:
>       * _snprintf/_vsnprintf() to workaround this problem.
> -     * See http://msdn.microsoft.com/en-us/library/1kt27hek(v=vs.80).aspx */
> +     * See https://web.archive.org/web/20151214111935/http://msdn.microsoft.com/en-us/library/1kt27hek(v=vs.80).aspx */

I still find similar documentation at
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/vsnprintf-vsnprintf-vsnprintf-l-vsnwprintf-vsnwprintf-l?view=msvc-160

>   * ASF specification. Revision 01.20.03.
> - *  [2]http://msdn.microsoft.com/en-us/library/bb643323.aspx
> + *  [2]http://web.archive.org/web/20131203084402/http://msdn.microsoft.com/en-us/library/bb643323.aspx

http://download.microsoft.com/download/7/9/0/790fecaa-f64a-4a5e-a430-0bccdab3f1b4/asf_specification.doc

But perhaps the archive versions turn out to be more reliably
accessable.

Moritz
diff mbox series

Patch

diff --git a/compat/msvcrt/snprintf.c b/compat/msvcrt/snprintf.c
index c64653fe82..43f5c3bb39 100644
--- a/compat/msvcrt/snprintf.c
+++ b/compat/msvcrt/snprintf.c
@@ -59,7 +59,7 @@  int avpriv_vsnprintf(char *s, size_t n, const char *fmt,
      * recommends to provide _snprintf/_vsnprintf() a buffer size that
      * is one less than the actual buffer, and zero it before calling
      * _snprintf/_vsnprintf() to workaround this problem.
-     * See http://msdn.microsoft.com/en-us/library/1kt27hek(v=vs.80).aspx */
+     * See https://web.archive.org/web/20151214111935/http://msdn.microsoft.com/en-us/library/1kt27hek(v=vs.80).aspx */
     memset(s, 0, n);
     va_copy(ap_copy, ap);
     ret = _vsnprintf(s, n - 1, fmt, ap_copy);
diff --git a/libavformat/mmst.c b/libavformat/mmst.c
index 377323fe27..fa6e86ac26 100644
--- a/libavformat/mmst.c
+++ b/libavformat/mmst.c
@@ -25,7 +25,7 @@ 
  * MMS protocol specification:
  *  [1]http://msdn.microsoft.com/en-us/library/cc234711(PROT.10).aspx
  * ASF specification. Revision 01.20.03.
- *  [2]http://msdn.microsoft.com/en-us/library/bb643323.aspx
+ *  [2]http://web.archive.org/web/20131203084402/http://msdn.microsoft.com/en-us/library/bb643323.aspx
  */
 
 #include "avformat.h"