>> When splitting large AVI (OpenDML) files the audio becomes unplayable (at
>> least on Windows for sure - I am still debugging thought). The problem
>> manifests itself when the result AVI is OpenDML  and everything works fine
>> when result AVI is non OpenDML. Video is fine (indexed properly), the
>> problem appears to be with audio and from what I could see audio indexes get
>> out of wack. I could trace the problem down to avi_close_output_file in
>> avilib/avilib.c, but this is as far as I got...
>
>
> I've reached similar conclusions. There isn't easy fix in sight (or at least
> not in my sight), nor is trivial to reproduce such problem so far

>From what I could tell, it looks like the problem is at line 1196 in avilib.c 
>which reads

           if (AVI->track[audtr].a_fmt == 0x1) {
               
AVI->track[audtr].audio_superindex->aIndex[cur_std_idx].dwDuration *= 
                   
AVI->track[audtr].a_bits*AVI->track[audtr].a_rate*AVI->track[audtr].a_chans/800;

Anyone could explain the logic?

This would produce dwDuration which is out of wack for the last index entry. 
Indexes upto the last entry looks normal to me, but I am not 100% sure how 
exactly they should look.

Aleksey 

<<winmail.dat>>

Reply via email to