Ported across from using boost pointers, and prepped for integration of audio interface into core OSG

This commit is contained in:
Robert Osfield
2009-02-27 17:00:28 +00:00
parent eef4801ba7
commit 116655c7c5
9 changed files with 96 additions and 16 deletions

View File

@@ -72,10 +72,10 @@ void FFmpegDecoderVideo::open(AVStream * const stream)
throw std::runtime_error("avcodec_open() failed");
// Allocate video frame
m_frame.reset(avcodec_alloc_frame(), av_free);
m_frame.reset(avcodec_alloc_frame());
// Allocate converted RGB frame
m_frame_rgba.reset(avcodec_alloc_frame(), av_free);
m_frame_rgba.reset(avcodec_alloc_frame());
m_buffer_rgba.resize(avpicture_get_size(PIX_FMT_RGB32, width(), height()));
m_buffer_rgba_public.resize(m_buffer_rgba.size());