Export as AVI with Audio Produce NmMediaProcessing::CmAudioDecoderError at very end.

I am writing video exporter for milestone and follow the given “ExportSample” sample. my recording are with audio. played and exported fine using milestone smart client. However using this sample when I try to export as avi (video H264, audio PCM) when the progress reach to end i.e. 98 or 100 it throw c++ exception “NmMediaProcessing::CmAudioDecoderError”. probably can’t conclude the audio indexs (just guessing). any remedy?

If you try to do the exact same export in the Smart Client (same user) does it fail the same way?