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

@@ -46,7 +46,7 @@ bool FFmpegDecoder::open(const std::string & filename)
if (av_open_input_file(&p_format_context, filename.c_str(), 0, 0, 0) != 0)
throw std::runtime_error("av_open_input_file() failed");
m_format_context.reset(p_format_context, av_close_input_file);
m_format_context.reset(p_format_context);
// Retrieve stream info
if (av_find_stream_info(p_format_context) < 0)