mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
avformat/rtpenc: switch to AVFMT_FLAG_BITEXACT
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
46380e8d26
commit
0323a55cd8
@ -127,7 +127,7 @@ static int rtp_write_header(AVFormatContext *s1)
|
|||||||
// available range, so that any wraparound doesn't happen immediately.
|
// available range, so that any wraparound doesn't happen immediately.
|
||||||
// (Immediate wraparound would be an issue for SRTP.)
|
// (Immediate wraparound would be an issue for SRTP.)
|
||||||
if (s->seq < 0) {
|
if (s->seq < 0) {
|
||||||
if (st->codec->flags & CODEC_FLAG_BITEXACT) {
|
if (s1->flags & AVFMT_FLAG_BITEXACT) {
|
||||||
s->seq = 0;
|
s->seq = 0;
|
||||||
} else
|
} else
|
||||||
s->seq = av_get_random_seed() & 0x0fff;
|
s->seq = av_get_random_seed() & 0x0fff;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user