Commit 0323a55c authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/rtpenc: switch to AVFMT_FLAG_BITEXACT

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 46380e8d
......@@ -127,7 +127,7 @@ static int rtp_write_header(AVFormatContext *s1)
// available range, so that any wraparound doesn't happen immediately.
// (Immediate wraparound would be an issue for SRTP.)
if (s->seq < 0) {
if (st->codec->flags & CODEC_FLAG_BITEXACT) {
if (s1->flags & AVFMT_FLAG_BITEXACT) {
s->seq = 0;
} else
s->seq = av_get_random_seed() & 0x0fff;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment