summaryrefslogtreecommitdiffstats
path: root/libavformat/rtpenc.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-02-10 10:31:19 +0200
committerMartin Storsjö <martin@martin.st>2012-03-01 16:08:32 +0200
commit984b914c55fe480985e702ce945e2f88835c21fe (patch)
treecce57eb0dbec3e92efa643a1c4ec4ca855573cd9 /libavformat/rtpenc.c
parentbdc1220eebd0a57a85b423335d7a67888ed4ca07 (diff)
downloadffmpeg-streaming-984b914c55fe480985e702ce945e2f88835c21fe.zip
ffmpeg-streaming-984b914c55fe480985e702ce945e2f88835c21fe.tar.gz
rtpenc: Use MB info side data for splitting H263 packets for RFC 2190
This makes the packetization spec compliant for cases where one single GOB doesn't fit into an RTP packet. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpenc.c')
-rw-r--r--libavformat/rtpenc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c
index cb0e241..41d5843 100644
--- a/libavformat/rtpenc.c
+++ b/libavformat/rtpenc.c
@@ -453,7 +453,11 @@ static int rtp_write_packet(AVFormatContext *s1, AVPacket *pkt)
break;
case CODEC_ID_H263:
if (s->flags & FF_RTP_FLAG_RFC2190) {
- ff_rtp_send_h263_rfc2190(s1, pkt->data, size);
+ int mb_info_size = 0;
+ const uint8_t *mb_info =
+ av_packet_get_side_data(pkt, AV_PKT_DATA_H263_MB_INFO,
+ &mb_info_size);
+ ff_rtp_send_h263_rfc2190(s1, pkt->data, size, mb_info, mb_info_size);
break;
}
/* Fallthrough */
OpenPOWER on IntegriCloud