mirror of
https://github.com/mpv-player/mpv
synced 2025-04-11 04:01:31 +00:00
change sws_format_name to return const char*, supress many warnings
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26183 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
7bda4c32f1
commit
fb984553d3
@ -276,7 +276,7 @@ static const AVOption options[] = {
|
|||||||
|
|
||||||
static AVClass sws_context_class = { "SWScaler", sws_context_to_name, options };
|
static AVClass sws_context_class = { "SWScaler", sws_context_to_name, options };
|
||||||
|
|
||||||
char *sws_format_name(enum PixelFormat format)
|
const char *sws_format_name(enum PixelFormat format)
|
||||||
{
|
{
|
||||||
switch (format) {
|
switch (format) {
|
||||||
case PIX_FMT_YUV420P:
|
case PIX_FMT_YUV420P:
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
#define LIBSWSCALE_VERSION_MAJOR 0
|
#define LIBSWSCALE_VERSION_MAJOR 0
|
||||||
#define LIBSWSCALE_VERSION_MINOR 5
|
#define LIBSWSCALE_VERSION_MINOR 5
|
||||||
#define LIBSWSCALE_VERSION_MICRO 0
|
#define LIBSWSCALE_VERSION_MICRO 1
|
||||||
|
|
||||||
#define LIBSWSCALE_VERSION_INT AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \
|
#define LIBSWSCALE_VERSION_INT AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \
|
||||||
LIBSWSCALE_VERSION_MINOR, \
|
LIBSWSCALE_VERSION_MINOR, \
|
||||||
|
@ -193,7 +193,7 @@ void altivec_yuv2packedX (SwsContext *c,
|
|||||||
int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,
|
int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,
|
||||||
uint8_t *dest, int dstW, int dstY);
|
uint8_t *dest, int dstW, int dstY);
|
||||||
|
|
||||||
char *sws_format_name(int format);
|
const char *sws_format_name(int format);
|
||||||
|
|
||||||
//FIXME replace this with something faster
|
//FIXME replace this with something faster
|
||||||
#define isPlanarYUV(x) ( \
|
#define isPlanarYUV(x) ( \
|
||||||
|
Loading…
Reference in New Issue
Block a user