summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--input/input.c4
-rw-r--r--libvo/vo_yuv4mpeg.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/input/input.c b/input/input.c
index b1af8abf84..2287784606 100644
--- a/input/input.c
+++ b/input/input.c
@@ -172,8 +172,8 @@ static mp_key_name_t key_names[] = {
{ KEY_KP8, "KP8" },
{ KEY_KP9, "KP9" },
{ KEY_KPDEL, "KP_DEL" },
- { KEY_KPDEC, "KP_DEL" },
- { KEY_KPINS, "KP0" },
+ { KEY_KPDEC, "KP_DEC" },
+ { KEY_KPINS, "KP_INS" },
{ KEY_KPENTER, "KP_ENTER" },
{ MOUSE_BTN0, "MOUSE_BTN0" },
{ MOUSE_BTN1, "MOUSE_BTN1" },
diff --git a/libvo/vo_yuv4mpeg.c b/libvo/vo_yuv4mpeg.c
index 61116ba4ff..89920cf937 100644
--- a/libvo/vo_yuv4mpeg.c
+++ b/libvo/vo_yuv4mpeg.c
@@ -36,7 +36,7 @@
#include "fastmemcpy.h"
#include "../postproc/rgb2rgb.h"
-
+#include "../libmpcodecs/vf_scale.h"
static vo_info_t info =
{
@@ -106,6 +106,7 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width,
if(using_format != IMGFMT_YV12)
{
+ sws_rgb2rgb_init(get_sws_cpuflags());
rgb_buffer = malloc(image_width * image_height * 3);
if (!rgb_buffer)
{