1
0
Fork 0
forked from len0rd/rockbox

FS#7487 - mpegplayer - video start time seek with resume

by John S. Gwynne & Brian J. Morey
This should stop the patch from breaking again and give them opportunity to improve it further.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15052 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Kukla 2007-10-09 20:42:20 +00:00
parent ce135909b9
commit fd3fe45bc1
17 changed files with 1241 additions and 219 deletions

View file

@ -54,6 +54,8 @@ static void * mpeg_malloc_internal (unsigned char *mallocbuf,
x = &mallocbuf[*mem_ptr];
*mem_ptr += (size + 3) & ~3; /* Keep memory 32-bit aligned */
rb->memset(x,0,size);
return x;
(void)reason;
}
@ -116,7 +118,7 @@ void * mpeg2_malloc(unsigned size, mpeg2_alloc_t reason)
void mpeg2_free(void *ptr)
{
(void)ptr;
mpeg2_mem_ptr = (void *)ptr - (void *)mpeg2_mallocbuf;
}
/* The following are expected by libmad */
@ -141,7 +143,7 @@ void * codec_calloc(size_t nmemb, size_t size)
void codec_free(void* ptr)
{
(void)ptr;
mem_ptr = (void *)ptr - (void *)mallocbuf;
}
void *memmove(void *dest, const void *src, size_t n)