diff options
author | Martin Storsjö <martin@martin.st> | 2012-10-08 23:18:38 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-10-08 23:55:53 +0300 |
commit | c9b10cc4dbb67a94c29359fde79fb882d71fef6f (patch) | |
tree | 36886caad0d91a08af602341e7f097987e02f448 /libavformat/rtpenc_vp8.c | |
parent | 66d652cbf38eb39377f20a6b536f939b6150e952 (diff) | |
download | ffmpeg-c9b10cc4dbb67a94c29359fde79fb882d71fef6f.tar.gz |
rtpenc_vp8: Update the packetizer to the latest spec version
Tested to work with the gstreamer depacketizer.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpenc_vp8.c')
-rw-r--r-- | libavformat/rtpenc_vp8.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/rtpenc_vp8.c b/libavformat/rtpenc_vp8.c index afedbb49c0..1730379874 100644 --- a/libavformat/rtpenc_vp8.c +++ b/libavformat/rtpenc_vp8.c @@ -22,7 +22,7 @@ #include "rtpenc.h" /* Based on a draft spec for VP8 RTP. - * ( http://www.webmproject.org/code/specs/rtp/ ) */ + * ( http://tools.ietf.org/html/draft-ietf-payload-vp8-05 ) */ void ff_rtp_send_vp8(AVFormatContext *s1, const uint8_t *buf, int size) { RTPMuxContext *s = s1->priv_data; @@ -32,7 +32,9 @@ void ff_rtp_send_vp8(AVFormatContext *s1, const uint8_t *buf, int size) s->timestamp = s->cur_timestamp; max_packet_size = s->max_payload_size - 1; // minus one for header byte - *s->buf_ptr++ = 1; // 0b1 indicates start of frame + // no extended control bits, reference frame, start of partition, + // partition id 0 + *s->buf_ptr++ = 0x10; while (size > 0) { len = FFMIN(size, max_packet_size); |