Fixed warning
This commit is contained in:
parent
52aeb306d0
commit
c547172c24
@ -12,6 +12,7 @@ extern "C"
|
||||
#include <avcodec.h>
|
||||
#include <avformat.h>
|
||||
#include <avdevice.h>
|
||||
#include <pixdesc.h>
|
||||
|
||||
#ifdef USE_SWSCALE
|
||||
#include <swscale.h>
|
||||
|
@ -5,8 +5,6 @@
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
|
||||
|
||||
namespace osgFFmpeg {
|
||||
|
||||
|
||||
@ -37,7 +35,7 @@ void FFmpegParameters::parse(const std::string& name, const std::string& value)
|
||||
}
|
||||
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")
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user