Hi! Peter Daum wrote:
> It seems to me (I am no MPEG-expert and don't normally do C++ ..) > like in psfile::psfile, the sequence of audio streams is merely > determined by the order in which they are seen in the file, > so whenever the 1st audio packet belongs to what would be considered > audio track 2 by other programs (id 0xc1 as I know now), trouble > starts. Yep, that's right. > There are certainly more elegant solutions, but the attached > crude little hack pretty much straightens it out for me ... You didn't actually use bubblesort, did you? ;-) Actually, it's much cleaner to only mark the audio streams and add a second pass that numbers them. Which is what I just did. Note that with either solution, MPEG audio tracks will come before AC-3 tracks if either kind is present (and detected). It's not too hard to change that if there is common demand for it, though. Welcome to r121 (code name "Easter Egg" ;-). -- Michael "Tired" Riepe <[EMAIL PROTECTED]> X-Tired: Each morning I get up I die a little ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ DVBCUT-user mailing list DVBCUT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dvbcut-user