summaryrefslogtreecommitdiff
path: root/libavformat/rtpenc_h264.c
diff options
context:
space:
mode:
authorYao Peter <peter@yuvad.com>2009-05-16 17:11:47 +0000
committerLuca Abeni <lucabe72@email.it>2009-05-16 17:11:47 +0000
commiteb853afb8a2813a27defbecbedf31ce0ce94e678 (patch)
treefbceb7f060a17e2add3152215faa17368b5ba205 /libavformat/rtpenc_h264.c
parent1ac7d1ac50291cf9b4f2de0c8224bbd2eb05ece5 (diff)
Fix the M bit for multi-packet NALs.
Patch by Yao Peter (peter AT yuvad DOT com) Originally committed as revision 18858 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtpenc_h264.c')
-rw-r--r--libavformat/rtpenc_h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpenc_h264.c b/libavformat/rtpenc_h264.c
index 26bd4a96a9..2ba0771a97 100644
--- a/libavformat/rtpenc_h264.c
+++ b/libavformat/rtpenc_h264.c
@@ -56,7 +56,7 @@ static void nal_send(AVFormatContext *s1, const uint8_t *buf, int size, int last
}
s->buf[1] |= 1 << 6;
memcpy(&s->buf[2], buf, size);
- ff_rtp_send_data(s1, s->buf, size + 2, 1);
+ ff_rtp_send_data(s1, s->buf, size + 2, last);
}
}