22 #include "libavutil/attributes.h"
23 #include "libavutil/intreadwrite.h"
54 memcpy(pkt->
data, buf, len);
64 .static_payload_id = 14,
72 .static_payload_id = 32,
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
RTP/JPEG specific private data.
AVCodecContext * codec
Codec context associated with this stream.
int index
stream index in AVFormatContext
enum AVMediaType codec_type
RTPDynamicProtocolHandler ff_mpeg_audio_dynamic_handler
enum AVStreamParseType need_parsing
static av_cold int mpeg_init(AVFormatContext *ctx, int st_index, PayloadContext *data)
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
preferred ID for decoding MPEG audio layer 1, 2 or 3
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)
AVStream ** streams
A list of all streams in the file.
preferred ID for MPEG-1/2 video decoding
enum AVMediaType codec_type
RTPDynamicProtocolHandler ff_mpeg_video_dynamic_handler
This structure stores compressed data.