diff options
Diffstat (limited to 'libavformat/rtpenc_xiph.c')
-rw-r--r-- | libavformat/rtpenc_xiph.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/rtpenc_xiph.c b/libavformat/rtpenc_xiph.c index 0564b06531..7572b176be 100644 --- a/libavformat/rtpenc_xiph.c +++ b/libavformat/rtpenc_xiph.c @@ -76,8 +76,9 @@ void ff_rtp_send_xiph(AVFormatContext *s1, const uint8_t *buff, int size) int remaining = end_ptr - ptr; 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) { + if (s->num_frames > 0 && + (remaining < 0 || + s->num_frames == s->max_frames_per_packet)) { // send previous packets now; no room for new data ff_rtp_send_data(s1, s->buf, s->buf_ptr - s->buf, 0); s->num_frames = 0; |