1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 23:02:37 +00:00
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10803 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2003-09-02 17:44:38 +00:00
parent 63ee7c8f40
commit 5e1ed4101b
2 changed files with 4 additions and 3 deletions

View File

@ -172,8 +172,8 @@ static mp_key_name_t key_names[] = {
{ KEY_KP8, "KP8" }, { KEY_KP8, "KP8" },
{ KEY_KP9, "KP9" }, { KEY_KP9, "KP9" },
{ KEY_KPDEL, "KP_DEL" }, { KEY_KPDEL, "KP_DEL" },
{ KEY_KPDEC, "KP_DEL" }, { KEY_KPDEC, "KP_DEC" },
{ KEY_KPINS, "KP0" }, { KEY_KPINS, "KP_INS" },
{ KEY_KPENTER, "KP_ENTER" }, { KEY_KPENTER, "KP_ENTER" },
{ MOUSE_BTN0, "MOUSE_BTN0" }, { MOUSE_BTN0, "MOUSE_BTN0" },
{ MOUSE_BTN1, "MOUSE_BTN1" }, { MOUSE_BTN1, "MOUSE_BTN1" },

View File

@ -36,7 +36,7 @@
#include "fastmemcpy.h" #include "fastmemcpy.h"
#include "../postproc/rgb2rgb.h" #include "../postproc/rgb2rgb.h"
#include "../libmpcodecs/vf_scale.h"
static vo_info_t info = 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) if(using_format != IMGFMT_YV12)
{ {
sws_rgb2rgb_init(get_sws_cpuflags());
rgb_buffer = malloc(image_width * image_height * 3); rgb_buffer = malloc(image_width * image_height * 3);
if (!rgb_buffer) if (!rgb_buffer)
{ {