[FFmpeg-devel] [PATCH v3 7/8] avpriv_find_start_code(): constify pointer parameters
Scott Theisen
scott.the.elm at gmail.com
Wed Feb 9 05:28:53 EET 2022
Have the compiler enforce not changing the addresses these parameters point to.
No functional change.
---
libavcodec/utils.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 68d126acd8..d11d92d21e 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -937,8 +937,8 @@ void ff_thread_report_progress2(AVCodecContext *avctx, int field, int thread, in
#endif
const uint8_t *avpriv_find_start_code(const uint8_t *av_restrict p,
- const uint8_t *end,
- uint32_t *av_restrict start_code)
+ const uint8_t * const end,
+ uint32_t * const av_restrict start_code)
{
av_assert0(p <= end);
if (p >= end)
--
2.32.0
More information about the ffmpeg-devel
mailing list