From: Renee Petris <[EMAIL PROTECTED]>
Subject: Problem with avcnvt sample
I case anyone else is having a problem with the avcnvt sample code not
converting a longer file. I believe that the problem is with the line:
m_ulTotalAudTime = (m_nStreamLengthAud *
1000)/m_WaveFormatEX.nSamplesPerSec; // I had almost 14,000,000 samples =
at
44100 samples/sec
I was getting overflow and the resulting m_ulTotalAudTime was wrong. =
Using
the SDK macro
m_ulTotalAudTime = AVIStreamLengthTime(m_pAVIStreamAud);
instead seems to give me the correct result. If anyone else has a =
better fix
or has seen another problem, I'd appreciate the input.
Renee Petris
Overseer of the Execution
*******************************************************
The RealForum is an email discussion group focused on using RealNetworks
products. The RealForum is a place to post messages about the best methods
for creating content using RealNetworks technologies and the planning and
implementation of streaming-media web sites. Archives of RealForum can
be found at http://realforum.real.com
If you ever want to remove yourself from this mailing list,
you can send mail to <[EMAIL PROTECTED]> with the following
command in the body of your email message:
unsubscribe realforum
or from another account, besides the address you subscribed with:
unsubscribe realforum <[EMAIL PROTECTED]>