Mercurial > audlegacy-plugins
changeset 1230:f45a99c8bc0d
Updates to the AAC reduced open patch by Christian "Joker" Birchinger.
author | Tony Vroon <chainsaw@gentoo.org> |
---|---|
date | Wed, 11 Jul 2007 00:48:20 +0100 |
parents | c9ff58a0feab |
children | 574d0cc96a39 |
files | src/aac/src/libmp4.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/aac/src/libmp4.c Tue Jul 10 23:04:17 2007 +0100 +++ b/src/aac/src/libmp4.c Wed Jul 11 00:48:20 2007 +0100 @@ -846,7 +846,12 @@ ret = parse_aac_stream(mp4fh); - vfs_fseek(mp4fh, 0, SEEK_SET); + if( ret == TRUE ) + vfs_fseek(mp4fh, 0, SEEK_SET); + else { + vfs_fclose(mp4fh); + mp4fh = vfs_fopen(filename, "rb"); + } mp4cb->read = mp4_read_callback; mp4cb->seek = mp4_seek_callback;