32#define LMLM4_I_FRAME 0x00
33#define LMLM4_P_FRAME 0x01
34#define LMLM4_B_FRAME 0x02
35#define LMLM4_INVALID 0x03
36#define LMLM4_MPEG1L2 0x04
38#define LMLM4_MAX_PACKET_SIZE 1024 * 1024
42 const unsigned char *buf = pd->
buf;
51 if ((
AV_RB16(buf + 8) & 0xfffe) != 0xfffc)
56 }
else if (
AV_RB24(buf + 8) == 0x000001) {
94 padding = -packet_size & 511;
117 pkt->stream_index = 0;
120 pkt->stream_index = 1;
unsigned int avio_rb16(AVIOContext *s)
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
unsigned int avio_rb32(AVIOContext *s)
static const uint8_t frame_size[4]
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
AVStream * avformat_new_stream(AVFormatContext *s, const struct AVCodec *c)
Add a new stream to a media file.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Macro definitions for various function/variable attributes.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static int lmlm4_read_packet(AVFormatContext *s, AVPacket *pkt)
static int lmlm4_read_header(AVFormatContext *s)
static int lmlm4_probe(const AVProbeData *pd)
#define LMLM4_MAX_PACKET_SIZE
enum AVMediaType codec_type
General type of the encoded data.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
This structure stores compressed data.
This structure contains the data a format has to probe a file.
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
enum AVStreamParseType need_parsing