25 #define HEADER_SIZE 24
48 if (bytestream_get_le16(&bytestream) != HEADER_SIZE)
50 width = bytestream_get_le16(&bytestream);
51 height = bytestream_get_le16(&bytestream);
53 height == 240) && !(width == 160 && height == 120))
57 fourcc = bytestream_get_le32(&bytestream);
58 if (fourcc !=
MKTAG(
'M',
'L',
'2',
'0'))
107 uint32_t
size, timestamp;
127 pkt->
pts = timestamp;
128 pkt->
dts = timestamp;
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
This struct describes the properties of an encoded stream.
AVInputFormat ff_msnwc_tcp_demuxer
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
unsigned int avio_rl32(AVIOContext *s)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
enum AVMediaType codec_type
General type of the encoded data.
int flags
A combination of AV_PKT_FLAG values.
static int msnwc_tcp_read_header(AVFormatContext *ctx)
int avio_r8(AVIOContext *s)
int buf_size
Size of buf except extra allocated bytes.
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
static int msnwc_tcp_read_packet(AVFormatContext *ctx, AVPacket *pkt)
static int msnwc_tcp_probe(AVProbeData *p)
AVIOContext * pb
I/O context.
This structure contains the data a format has to probe a file.
unsigned int avio_rl16(AVIOContext *s)
int64_t dts
Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed...
AVCodecParameters * codecpar
Codec parameters associated with this stream.
int avio_feof(AVIOContext *s)
feof() equivalent for AVIOContext.
uint32_t codec_tag
Additional information about the codec (corresponds to the AVI FOURCC).
#define MKTAG(a, b, c, d)
This structure stores compressed data.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...