[FFmpeg-cvslog] avcodec/utils: use av_assert0() to check validity of input pointers for start code search

Michael Niedermayer git at videolan.org
Tue Jul 23 21:29:19 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jul 23 21:23:09 2013 +0200| [55db06af64d1acb7c3e304d61e7a1f265139d27a] | committer: Michael Niedermayer

avcodec/utils: use av_assert0() to check validity of input pointers for start code search

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=55db06af64d1acb7c3e304d61e7a1f265139d27a
---

 libavcodec/utils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 64bae3e..ea83fe8 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -3225,7 +3225,7 @@ const uint8_t *avpriv_find_start_code(const uint8_t *av_restrict p,
 {
     int i;
 
-    assert(p <= end);
+    av_assert0(p <= end);
     if (p >= end)
         return end;
 



More information about the ffmpeg-cvslog mailing list