36 #define VMD_HEADER_SIZE 0x0330
37 #define BYTES_PER_FRAME_RECORD 16
76 if (!w || w > 2048 || !h || h > 2048)
88 unsigned int toc_offset;
89 unsigned char *raw_frame_table;
90 int raw_frame_table_size;
91 int64_t current_offset;
93 unsigned int total_frames;
94 int64_t current_audio_pts = 0;
116 vst->codec->codec_tag = 0;
119 if(vmd->
is_indeo3 && vst->codec->width > 320){
120 vst->codec->width >>= 1;
121 vst->codec->height >>= 1;
158 av_reduce(&num, &den, num, den, (1UL<<31)-1);
168 raw_frame_table =
NULL;
176 raw_frame_table =
av_malloc(raw_frame_table_size);
183 if (
avio_read(pb, raw_frame_table, raw_frame_table_size) !=
184 raw_frame_table_size) {
193 current_offset =
AV_RL32(&raw_frame_table[6 * i + 2]);
203 if(!size && type != 1)
215 if(!current_audio_pts)
216 current_audio_pts += sound_buffers - 1;
229 current_offset +=
size;