Fixed warning

This commit is contained in:
Robert Osfield 2011-06-17 06:22:01 +00:00
parent 52aeb306d0
commit c547172c24
2 changed files with 2 additions and 3 deletions

View File

@ -12,6 +12,7 @@ extern "C"
#include <avcodec.h> #include <avcodec.h>
#include <avformat.h> #include <avformat.h>
#include <avdevice.h> #include <avdevice.h>
#include <pixdesc.h>
#ifdef USE_SWSCALE #ifdef USE_SWSCALE
#include <swscale.h> #include <swscale.h>

View File

@ -5,8 +5,6 @@
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>
namespace osgFFmpeg { namespace osgFFmpeg {
@ -37,7 +35,7 @@ void FFmpegParameters::parse(const std::string& name, const std::string& value)
} }
else if (name == "pixel_format") else if (name == "pixel_format")
{ {
m_parameters.pix_fmt = avcodec_get_pix_fmt(value.c_str()); m_parameters.pix_fmt = av_get_pix_fmt(value.c_str());
} }
else if (name == "frame_size") else if (name == "frame_size")
{ {