36 #define VMD_HEADER_SIZE 0x0330
37 #define BYTES_PER_FRAME_RECORD 16
77 if ((!w || w > 2048 || !h || h > 2048) &&
90 unsigned int toc_offset;
91 unsigned char *raw_frame_table;
92 int raw_frame_table_size;
93 int64_t current_offset;
95 unsigned int total_frames;
96 int64_t current_audio_pts = 0;
108 if (width && height) {
122 vst->codec->codec_tag = 0;
123 vst->codec->width =
width;
124 vst->codec->height =
height;
125 if(vmd->
is_indeo3 && vst->codec->width > 320){
126 vst->codec->width >>= 1;
127 vst->codec->height >>= 1;
165 av_reduce(&num, &den, num, den, (1UL<<31)-1);
176 raw_frame_table = NULL;
184 raw_frame_table =
av_malloc(raw_frame_table_size);
191 if (
avio_read(pb, raw_frame_table, raw_frame_table_size) !=
192 raw_frame_table_size) {
201 current_offset =
AV_RL32(&raw_frame_table[6 * i + 2]);
211 if(!size && type != 1)
223 if(!current_audio_pts)
224 current_audio_pts += sound_buffers - 1;
237 current_offset +=
size;