loop when if avcodec_decode_audio (ffmpeg function) returned 0 in the loop its in and when fixed in the loop above it. see post http://panda3d.org/phpbb2/viewtopic.php?p=30331#30331 most changes are to ffmpegAudioCursor.cxx and movieAudio.h It basically changes to proper error handling with 0 as DONE - if (len < 0) { + if (len <= 0) { and create a give up counter + // give up after 100 tries to fetch data + int give_up_after = 100; + + while (desired && give_up_after > 0) { + give_up_after --; and some helpful debug messages for the next poor coder to step into this code. |
||
|---|---|---|
| direct | ||
| dmodels | ||
| doc | ||
| dtool | ||
| models | ||
| panda | ||
| pandaapp | ||
| pandatool | ||
| ppremake | ||