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);
 
   52         if(!(width==320 && height==240) && !(width==160 && height==120))
 
   56         fourcc = bytestream_get_le32(&bytestream);
 
   57         if(fourcc != 
MKTAG(
'M', 
'L', 
'2', 
'0'))
 
  106     uint32_t 
size, timestamp;
 
  122     pkt->
pts = timestamp;
 
  123     pkt->
dts = timestamp;
 
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward. 
 
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. ...
 
int flags
A combination of AV_PKT_FLAG values. 
 
static int msnwc_tcp_read_header(AVFormatContext *ctx)
 
int avio_r8(AVIOContext *s)
 
AVCodecContext * codec
Codec context associated with this stream. 
 
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)
 
enum AVMediaType codec_type
 
static int msnwc_tcp_probe(AVProbeData *p)
 
AVIOContext * pb
I/O context. 
 
main external API structure. 
 
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A'). 
 
BYTE int const BYTE int int int height
 
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...
 
int avio_feof(AVIOContext *s)
feof() equivalent for AVIOContext. 
 
#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...