|
|
@ -193,13 +193,13 @@ static int vmd_read_header(AVFormatContext *s, |
|
|
|
case 1: /* Audio Chunk */ |
|
|
|
case 1: /* Audio Chunk */ |
|
|
|
if (!st) break; |
|
|
|
if (!st) break; |
|
|
|
/* first audio chunk contains several audio buffers */ |
|
|
|
/* first audio chunk contains several audio buffers */ |
|
|
|
vmd->frame_table[total_frames].frame_offset = current_offset; |
|
|
|
vmd->frame_table[total_frames].frame_offset = current_offset; |
|
|
|
vmd->frame_table[total_frames].stream_index = vmd->audio_stream_index; |
|
|
|
vmd->frame_table[total_frames].stream_index = vmd->audio_stream_index; |
|
|
|
vmd->frame_table[total_frames].frame_size = size; |
|
|
|
vmd->frame_table[total_frames].frame_size = size; |
|
|
|
memcpy(vmd->frame_table[total_frames].frame_record, chunk, BYTES_PER_FRAME_RECORD); |
|
|
|
memcpy(vmd->frame_table[total_frames].frame_record, chunk, BYTES_PER_FRAME_RECORD); |
|
|
|
vmd->frame_table[total_frames].pts = current_audio_pts; |
|
|
|
vmd->frame_table[total_frames].pts = current_audio_pts; |
|
|
|
total_frames++; |
|
|
|
total_frames++; |
|
|
|
current_audio_pts += pts_inc; |
|
|
|
current_audio_pts += pts_inc; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 2: /* Video Chunk */ |
|
|
|
case 2: /* Video Chunk */ |
|
|
|
vmd->frame_table[total_frames].frame_offset = current_offset; |
|
|
|
vmd->frame_table[total_frames].frame_offset = current_offset; |
|
|
|