diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-03-01 01:00:57 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-01 01:01:01 +0100 |
commit | cfe33c98b74b97e9b06231ffb981aefdb15be189 (patch) | |
tree | 299fb684d04805da1be00acf59b084923b0d39ca /libavformat/rtpenc_xiph.c | |
parent | ba069e08bdaa431ed8198ac20d2e648de95bc664 (diff) | |
parent | 1fc64e2e07787bbca82a72c146588e850e6d098a (diff) | |
download | ffmpeg-cfe33c98b74b97e9b06231ffb981aefdb15be189.tar.gz |
Merge commit '1fc64e2e07787bbca82a72c146588e850e6d098a'
* commit '1fc64e2e07787bbca82a72c146588e850e6d098a':
rtpenc: Write conditional statements on separate lines
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtpenc_xiph.c')
-rw-r--r-- | libavformat/rtpenc_xiph.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/rtpenc_xiph.c b/libavformat/rtpenc_xiph.c index bc40cf88f8..ba0b2189f9 100644 --- a/libavformat/rtpenc_xiph.c +++ b/libavformat/rtpenc_xiph.c @@ -82,14 +82,16 @@ void ff_rtp_send_xiph(AVFormatContext *s1, const uint8_t *buff, int size) } // buffer current frame to send later - if (0 == s->num_frames) s->timestamp = s->cur_timestamp; + if (0 == s->num_frames) + s->timestamp = s->cur_timestamp; s->num_frames++; // Set packet header. Normally, this is OR'd with frag and xdt, // but those are zero, so omitted here *q++ = s->num_frames; - if (s->num_frames > 1) q = s->buf_ptr; // jump ahead if needed + if (s->num_frames > 1) + q = s->buf_ptr; // jump ahead if needed *q++ = (size >> 8) & 0xff; *q++ = size & 0xff; memcpy(q, buff, size); |