Replaced avcodec_encode_audio with avcodec_encode_audio2, and completely redid the way PTS values are calculated and set. Another nice improvement!

This commit is contained in:
Jonathan Thomas
2012-10-27 21:36:08 -05:00
parent bf93f6941e
commit 60ffebe1fe
3 changed files with 245 additions and 208 deletions

View File

@@ -243,7 +243,7 @@ void Frame::ClearWaveform()
const Magick::PixelPacket* Frame::GetWaveformPixels(int width, int height)
{
// Get audio wave form image
tr1::shared_ptr<Magick::Image> wave_image = GetWaveform(width, height);
wave_image = GetWaveform(width, height);
// Return array of pixel packets
return wave_image->getConstPixels(0,0, wave_image->columns(), wave_image->rows());