ffmpeg/swscale: Fix warning and broken get_target_size
This commit is contained in:
@@ -94,7 +94,11 @@ void ffmpeg::swscale::set_target_size(uint32_t width, uint32_t height)
|
|||||||
target_size.second = height;
|
target_size.second = height;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ffmpeg::swscale::get_target_size(uint32_t& width, uint32_t& height) {}
|
void ffmpeg::swscale::get_target_size(uint32_t& width, uint32_t& height)
|
||||||
|
{
|
||||||
|
width = target_size.first;
|
||||||
|
height = target_size.second;
|
||||||
|
}
|
||||||
|
|
||||||
std::pair<uint32_t, uint32_t> ffmpeg::swscale::get_target_size()
|
std::pair<uint32_t, uint32_t> ffmpeg::swscale::get_target_size()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -23,8 +23,11 @@
|
|||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
#pragma warning(push)
|
||||||
|
#pragma warning(disable : 4244)
|
||||||
#include <libavutil/pixfmt.h>
|
#include <libavutil/pixfmt.h>
|
||||||
#include <libswscale/swscale.h>
|
#include <libswscale/swscale.h>
|
||||||
|
#pragma warning(pop)
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace ffmpeg {
|
namespace ffmpeg {
|
||||||
|
|||||||
Reference in New Issue
Block a user