From f5bfa1d2fb07913d4c71776afb14ea85d6235005 Mon Sep 17 00:00:00 2001 From: lucabe Date: Sat, 16 May 2009 17:11:47 +0000 Subject: [PATCH] Fix the M bit for multi-packet NALs. Patch by Yao Peter (peter AT yuvad DOT com) git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18858 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- libavformat/rtpenc_h264.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/rtpenc_h264.c b/libavformat/rtpenc_h264.c index 26bd4a96a..2ba0771a9 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); } } -- 2.39.2