44 #define BINK_EXTRADATA_SIZE 1
45 #define BINK_MAX_AUDIO_TRACKS 256
46 #define BINK_MAX_WIDTH 7680
47 #define BINK_MAX_HEIGHT 4800
64 if (((b[0] ==
'B' && b[1] ==
'I' && b[2] ==
'K' &&
65 (b[3] ==
'b' || b[3] ==
'f' || b[3] ==
'g' || b[3] ==
'h' || b[3] ==
'i')) ||
66 (b[0] ==
'K' && b[1] ==
'B' && b[2] ==
'2' &&
67 (b[3] ==
'a' || b[3] ==
'd' || b[3] ==
'f' || b[3] ==
'g'))) &&
80 uint32_t fps_num, fps_den;
83 uint32_t pos, next_pos;
104 "invalid header: largest frame size greater than file size\n");
115 if (fps_num == 0 || fps_den == 0) {
117 "invalid header: invalid fps (%"PRIu32
"/%"PRIu32
")\n",
176 for (i = 0; i < vst->
duration; i++) {
188 if (next_pos <= pos) {
218 if (index_entry < 0) {
220 "could not find index entry for frame %"PRId64
"\n",
233 "frame %"PRId64
": audio size in header (%"PRIu32
") > size of packet left (%"PRIu32
")\n",
239 if (audio_size >= 4) {