42 #define BINK_EXTRADATA_SIZE 1
43 #define BINK_MAX_AUDIO_TRACKS 256
44 #define BINK_MAX_WIDTH 7680
45 #define BINK_MAX_HEIGHT 4800
62 if (((b[0] ==
'B' && b[1] ==
'I' && b[2] ==
'K' &&
63 (b[3] ==
'b' || b[3] ==
'f' || b[3] ==
'g' || b[3] ==
'h' || b[3] ==
'i')) ||
64 (b[0] ==
'K' && b[1] ==
'B' && b[2] ==
'2' &&
65 (b[3] ==
'a' || b[3] ==
'd' || b[3] ==
'f' || b[3] ==
'g'))) &&
78 uint32_t fps_num, fps_den;
81 uint32_t pos, next_pos;
102 "invalid header: largest frame size greater than file size\n");
113 if (fps_num == 0 || fps_den == 0) {
172 for (i = 0; i < vst->
duration; i++) {
184 if (next_pos <= pos) {
214 if (index_entry < 0) {
216 "could not find index entry for frame %"PRId64
"\n",
229 "frame %"PRId64
": audio size in header (%u) > size of packet left (%u)\n",
235 if (audio_size >= 4) {