47 const uint8_t *bytestream = p->buf +
i;
49 if (bytestream_get_le16(&bytestream) !=
HEADER_SIZE)
51 width = bytestream_get_le16(&bytestream);
52 height = bytestream_get_le16(&bytestream);
58 fourcc = bytestream_get_le32(&bytestream);
108 uint32_t
size, timestamp;
128 pkt->pts = timestamp;
129 pkt->dts = timestamp;
130 pkt->stream_index = 0;
141 .p.name =
"msnwctcp",
int avio_feof(AVIOContext *s)
Similar to feof() but also returns nonzero on read errors.
unsigned int avio_rl16(AVIOContext *s)
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
unsigned int avio_rl32(AVIOContext *s)
int avio_r8(AVIOContext *s)
#define i(width, name, range_min, range_max)
#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.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define MKTAG(a, b, c, d)
static int msnwc_tcp_read_header(AVFormatContext *ctx)
static int msnwc_tcp_read_packet(AVFormatContext *ctx, AVPacket *pkt)
static int msnwc_tcp_probe(const AVProbeData *p)
This struct describes the properties of an encoded stream.
enum AVMediaType codec_type
General type of the encoded data.
uint32_t codec_tag
Additional information about the codec (corresponds to the AVI FOURCC).
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.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
static AVFormatContext * ctx