[FFmpeg-cvslog] avformat/rtpenc: switch to AVFMT_FLAG_BITEXACT

Michael Niedermayer git at videolan.org
Sun May 18 04:41:03 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun May 18 04:02:44 2014 +0200| [0323a55cd898de087d87e331786d816f7fea966b] | committer: Michael Niedermayer

avformat/rtpenc: switch to AVFMT_FLAG_BITEXACT

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0323a55cd898de087d87e331786d816f7fea966b
---

 libavformat/rtpenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c
index 457fef0..bf9c245 100644
--- a/libavformat/rtpenc.c
+++ b/libavformat/rtpenc.c
@@ -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;



More information about the ffmpeg-cvslog mailing list