Revision 4f4e4008 libavdevice/bktr.c

View differences:

libavdevice/bktr.c
45 45
#include <sys/mman.h>
46 46
#include <sys/time.h>
47 47
#include <signal.h>
48
#include <stdint.h>
48 49
#include <strings.h>
49 50

  
50 51
typedef struct {
......
53 54
    int width, height;
54 55
    int frame_rate;
55 56
    int frame_rate_base;
56
    u_int64_t per_frame;
57
    uint64_t per_frame;
57 58
} VideoData;
58 59

  
59 60

  
......
80 81

  
81 82
uint8_t *video_buf;
82 83
size_t video_buf_size;
83
u_int64_t last_frame_time;
84
uint64_t last_frame_time;
84 85
volatile sig_atomic_t nsignals;
85 86

  
86 87

  
......
90 91
    return;
91 92
}
92 93

  
93
static int bktr_init(const char *video_device, int width, int height,
94
static av_cold int bktr_init(const char *video_device, int width, int height,
94 95
    int format, int *video_fd, int *tuner_fd, int idev, double frequency)
95 96
{
96 97
    struct meteor_geomet geo;
......
204 205
    return 0;
205 206
}
206 207

  
207
static void bktr_getframe(u_int64_t per_frame)
208
static void bktr_getframe(uint64_t per_frame)
208 209
{
209
    u_int64_t curtime;
210
    uint64_t curtime;
210 211

  
211 212
    curtime = av_gettime();
212 213
    if (!last_frame_time
......
265 266
    s->height = height;
266 267
    s->frame_rate = frame_rate;
267 268
    s->frame_rate_base = frame_rate_base;
268
    s->per_frame = ((u_int64_t)1000000 * s->frame_rate_base) / s->frame_rate;
269
    s->per_frame = ((uint64_t)1000000 * s->frame_rate_base) / s->frame_rate;
269 270

  
270 271
    st->codec->codec_type = CODEC_TYPE_VIDEO;
271 272
    st->codec->pix_fmt = PIX_FMT_YUV420P;

Also available in: Unified diff