Mercurial > libavformat.hg
comparison rtp_mpv.c @ 4388:80f21f72d7d6 libavformat
Split rtp.h in rtp.h, rtpdec.h, and rtpenc.h
author | lucabe |
---|---|
date | Fri, 06 Feb 2009 10:35:52 +0000 |
parents | f49e5d92ab26 |
children | 7734b5d0fc6c |
comparison
equal
deleted
inserted
replaced
4387:5c42816e12c6 | 4388:80f21f72d7d6 |
---|---|
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
21 */ | 21 */ |
22 | 22 |
23 #include "libavcodec/mpegvideo.h" | 23 #include "libavcodec/mpegvideo.h" |
24 #include "avformat.h" | 24 #include "avformat.h" |
25 #include "rtp.h" | 25 #include "rtpenc.h" |
26 | 26 |
27 /* NOTE: a single frame must be passed with sequence header if | 27 /* NOTE: a single frame must be passed with sequence header if |
28 needed. XXX: use slices. */ | 28 needed. XXX: use slices. */ |
29 void ff_rtp_send_mpegvideo(AVFormatContext *s1, const uint8_t *buf1, int size) | 29 void ff_rtp_send_mpegvideo(AVFormatContext *s1, const uint8_t *buf1, int size) |
30 { | 30 { |
31 RTPDemuxContext *s = s1->priv_data; | 31 RTPMuxContext *s = s1->priv_data; |
32 int len, h, max_packet_size; | 32 int len, h, max_packet_size; |
33 uint8_t *q; | 33 uint8_t *q; |
34 int begin_of_slice, end_of_slice, frame_type, temporal_reference; | 34 int begin_of_slice, end_of_slice, frame_type, temporal_reference; |
35 | 35 |
36 max_packet_size = s->max_payload_size; | 36 max_packet_size = s->max_payload_size; |