25 #define RTP_H261_HEADER_SIZE 4 32 for (; p >
start; p--) {
33 if (p[0] == 0 && p[1] == 1)
42 int last_packet_of_frame;
49 while (frame_size > 0) {
74 if (frame_size < 2 || frame_buf[0] != 0 || frame_buf[1] != 1) {
80 "RTP/H.261 packet not cut at a GOB boundary, not signaled correctly\n");
86 if (cur_frame_size < frame_size) {
88 frame_buf + cur_frame_size);
89 cur_frame_size = packet_end - frame_buf;
93 last_packet_of_frame = cur_frame_size ==
frame_size;
99 frame_buf += cur_frame_size;
100 frame_size -= cur_frame_size;
#define AV_LOG_WARNING
Something somehow does not look correct.
#define RTP_H261_HEADER_SIZE
static av_cold int end(AVCodecContext *avctx)
void ff_rtp_send_data(AVFormatContext *s1, const uint8_t *buf1, int len, int m)
void ff_rtp_send_h261(AVFormatContext *ctx, const uint8_t *frame_buf, int frame_size)
void * priv_data
Format private data.
static const uint8_t * find_resync_marker_reverse(const uint8_t *av_restrict start, const uint8_t *av_restrict end)