46 memcpy(pkt->
data, buf, len);
56 .static_payload_id = 14,
64 .static_payload_id = 32,
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
ptrdiff_t const GLvoid * data
RTP/JPEG specific private data.
int index
stream index in AVFormatContext
const RTPDynamicProtocolHandler ff_mpeg_video_dynamic_handler
enum AVMediaType codec_type
Macro definitions for various function/variable attributes.
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_RB32
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
const RTPDynamicProtocolHandler ff_mpeg_audio_dynamic_handler
preferred ID for decoding MPEG audio layer 1, 2 or 3
enum AVMediaType codec_type
General type of the encoded data.
static int mpeg_parse_packet(AVFormatContext *ctx, PayloadContext *data, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, uint16_t seq, int flags)
preferred ID for MPEG-1/2 video decoding
#define flags(name, subs,...)
AVCodecParameters * codecpar
Codec parameters associated with this stream.
This structure stores compressed data.