Revision ff4d09f3

View differences:

out-stream-avf.c
116 116
  p = data + header_size + FRAME_HEADER_SIZE * frames;
117 117
  for (i = 0; i < frames; i++) {
118 118
    AVPacket pkt;
119
    int32_t pts, dts;
119
    int64_t pts, dts;
120 120
    int frame_size;
121 121

  
122 122
    frame_header_parse(data + header_size + FRAME_HEADER_SIZE * i,
payload.h
1 1
#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
2 2
#define FRAME_HEADER_SIZE (3 + 4 + 1)	// 3 Frame size + 4 PTS + 1 DeltaTS
3 3

  
4
static inline void frame_header_parse(const uint8_t *data, int *size, int32_t *pts, int32_t *dts)
4
static inline void frame_header_parse(const uint8_t *data, int *size, int64_t *pts, int64_t *dts)
5 5
{
6 6
  int i;
7 7

  

Also available in: Unified diff