Change all uses of restrict to use av_restrict instead.
Defining restrict results - for some compilers - in changing other uses of the restrict keyword also, e.g. __declspec(restrict) gets changed to __declspec(__restrict) on MSVC. This causes compilation failures. Therefore, using a private namespace macro instead is more reliable and robust. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
committed by
Michael Niedermayer
parent
5c14b282d1
commit
17fad33f81
@@ -86,7 +86,7 @@ void ff_rtp_send_mpegvideo(AVFormatContext *s1, const uint8_t *buf1, int size);
|
||||
void ff_rtp_send_xiph(AVFormatContext *s1, const uint8_t *buff, int size);
|
||||
void ff_rtp_send_vp8(AVFormatContext *s1, const uint8_t *buff, int size);
|
||||
|
||||
const uint8_t *ff_h263_find_resync_marker_reverse(const uint8_t *restrict start,
|
||||
const uint8_t *restrict end);
|
||||
const uint8_t *ff_h263_find_resync_marker_reverse(const uint8_t *av_restrict start,
|
||||
const uint8_t *av_restrict end);
|
||||
|
||||
#endif /* AVFORMAT_RTPENC_H */
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
#include "avformat.h"
|
||||
#include "rtpenc.h"
|
||||
|
||||
const uint8_t *ff_h263_find_resync_marker_reverse(const uint8_t *restrict start,
|
||||
const uint8_t *restrict end)
|
||||
const uint8_t *ff_h263_find_resync_marker_reverse(const uint8_t *av_restrict start,
|
||||
const uint8_t *av_restrict end)
|
||||
{
|
||||
const uint8_t *p = end - 1;
|
||||
start += 1; /* Make sure we never return the original start. */
|
||||
|
||||
Reference in New Issue
Block a user