]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rtpenc_xiph.c
Merge commit 'f7b240434c015056bc6319ddbdb8483757cc13e2'
[ffmpeg] / libavformat / rtpenc_xiph.c
index 57686326a8df84b51eb5c7f1f92c5422ddb447d4..bc40cf88f871ed6a2c3723b2bac5b07c74a129b2 100644 (file)
@@ -19,6 +19,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#include "libavutil/avassert.h"
 #include "avformat.h"
 #include "rtpenc.h"
 
@@ -72,7 +73,7 @@ void ff_rtp_send_xiph(AVFormatContext *s1, const uint8_t *buff, int size)
         uint8_t *ptr     = s->buf_ptr + 2 + size; // what we're going to write
         int remaining    = end_ptr - ptr;
 
-        assert(s->num_frames <= s->max_frames_per_packet);
+        av_assert1(s->num_frames <= s->max_frames_per_packet);
         if ((s->num_frames > 0 && remaining < 0) ||
             s->num_frames == s->max_frames_per_packet) {
             // send previous packets now; no room for new data