File MPlayer.patch of Package MPlayer
--- a/m_property.c
+++ b/m_property.c
@@ -358,7 +358,7 @@ int m_property_time_ro(const m_option_t*
s -= h * 3600;
m = s / 60;
s -= m * 60;
- *(char **) arg = malloc(20);
+ *(char **) arg = malloc(32);
if (h > 0)
sprintf(*(char **) arg, "%d:%02d:%02d", h, m, s);
else if (m > 0)
--- a/libmpcodecs/ad_spdif.c
+++ b/libmpcodecs/ad_spdif.c
@@ -54,7 +54,7 @@ static int read_packet(void *p, uint8_t
return 0;
}
-static int write_packet(void *p, const uint8_t *buf, int buf_size)
+static int write_packet(void *p, uint8_t *buf, int buf_size)
{
int len;
struct spdifContext *ctx = p;
--- a/libmpdemux/muxer_lavf.c
+++ b/libmpdemux/muxer_lavf.c
@@ -77,7 +77,7 @@ const m_option_t lavfopts_conf[] = {
{NULL, NULL, 0, 0, 0, 0, NULL}
};
-static int mp_write(void *opaque, const uint8_t *buf, int size)
+static int mp_write(void *opaque, uint8_t *buf, int size)
{
muxer_t *muxer = opaque;
return stream_write_buffer(muxer->stream, buf, size);
--- a/libmenu/menu_console.c
+++ b/libmenu/menu_console.c
@@ -469,7 +469,7 @@ static int read_key(menu_t* menu,int c)
int l = strlen(mpriv->cur_history->buffer);
if(l >= mpriv->cur_history->size) {
mpriv->cur_history->size += 255;
- mpriv->cur_history->buffer = realloc(mpriv->cur_history,mpriv->cur_history->size);
+ mpriv->cur_history->buffer = realloc(mpriv->cur_history->buffer,mpriv->cur_history->size);
}
mpriv->cur_history->buffer[l] = (char)c;
mpriv->cur_history->buffer[l+1] = '\0';