]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rtpenc.c
avformat/rtspdec: Use av_mallocz_array()
[ffmpeg] / libavformat / rtpenc.c
index 457fef0cfcbed19f69f4562d74dec257215e235f..bf9c245161a41db461d176cb7d8b27ede9cb0275 100644 (file)
@@ -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;