]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11394: [mod_av] Fix "restrict" regression.
authorAndrey Volk <andywolk@gmail.com>
Wed, 19 Sep 2018 18:36:02 +0000 (21:36 +0300)
committerAndrey Volk <andywolk@gmail.com>
Wed, 19 Sep 2018 18:36:02 +0000 (21:36 +0300)
src/mod/applications/mod_av/avcodec.c

index 6e5f1f97e0a487fcda793fde8b4bce5332988154..39b426acd63c0aa4fb589a4eb1a35802adfbf5b8 100644 (file)
@@ -710,8 +710,13 @@ void rtp_callback(struct AVCodecContext *avctx, void *data, int size, int mb_nb)
 }
 #endif
 
+#ifdef WIN32
 const uint8_t *fs_h263_find_resync_marker_reverse(const uint8_t *av_restrict start,
                                                                                                  const uint8_t *av_restrict end)
+#else
+const uint8_t *fs_h263_find_resync_marker_reverse(const uint8_t *restrict start,
+                                                                                                 const uint8_t *restrict end)
+#endif
 {
        const uint8_t *p = end - 1;
        start += 1; /* Make sure we never return the original start. */