Revision 421c2dc2 Chunkiser/input-stream-avs.c

View differences:

Chunkiser/input-stream-avs.c
9 9

  
10 10
#include "../dbg.h"
11 11
#include "../input-stream.h"
12
#include "../payload.h"
12 13
#include "../input.h"		//TODO: for flags. Check if we can do something smarter
14

  
13 15
#define STATIC_BUFF_SIZE 1000 * 1024
14 16
#define HEADER_REFRESH_PERIOD 50
15 17

  
......
23 25
  int frames_since_global_headers;
24 26
};
25 27

  
26
#define VIDEO_PAYLOAD_HEADER_SIZE 1 + 2 + 2 + 2 + 2 + 1 // 1 Frame type + 2 width + 2 height + 2 frame rate num + 2 frame rate den + 1 number of frames
27
#define FRAME_HEADER_SIZE (3 + 4 + 1)	// 3 Frame size + 4 PTS + 1 DeltaTS
28

  
29 28
static uint8_t codec_type(enum CodecID cid)
30 29
{
31 30
  switch (cid) {

Also available in: Unified diff