diff options
author | brunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-10-05 18:28:42 +0000 |
---|---|---|
committer | brunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-10-05 18:28:42 +0000 |
commit | 65ddad359ed3b9b739215ec89a7645455ae10dce (patch) | |
tree | 7fdc703f290b37e68ce0e6a2c56d5bdd2f7ee07b /Game/Code/lib/acinerella/acinerella.c | |
parent | dbe444f87b85da27a37f38e80bfd540178b8dde0 (diff) | |
download | usdx-65ddad359ed3b9b739215ec89a7645455ae10dce.tar.gz usdx-65ddad359ed3b9b739215ec89a7645455ae10dce.tar.xz usdx-65ddad359ed3b9b739215ec89a7645455ae10dce.zip |
- added webcam support
- faster program start
- faster sorting (mergesort)
- sync lyrics to music
- some new backgrounds and credits graphics (thx to MezzoX)
- own thread for video decoding
- finished 6-Player-on-one-screen-mode
- changqed player-colors
- fixed some bugs...
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1 Challenge MOD@2637 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | Game/Code/lib/acinerella/acinerella.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Game/Code/lib/acinerella/acinerella.c b/Game/Code/lib/acinerella/acinerella.c index 509346a7..5b0178e4 100644 --- a/Game/Code/lib/acinerella/acinerella.c +++ b/Game/Code/lib/acinerella/acinerella.c @@ -344,7 +344,10 @@ int CALL_CONVT ac_open( AC_BUFSIZE, 0, pacInstance, io_read, 0, io_seek);
}
- if(av_open_input_stream(&(((lp_ac_data)pacInstance)->pFormatCtx),
+ //Open the given input stream (the io structure) with the given format of the stream
+ //(fmt) and write the pointer to the new format context to the pFormatCtx variable
+ if (av_open_input_stream(
+ &(((lp_ac_data)pacInstance)->pFormatCtx),
&(((lp_ac_data)pacInstance)->io), "", fmt, NULL) < 0)
{
return -1;
@@ -386,11 +389,12 @@ void CALL_CONVT ac_close(lp_ac_instance pacInstance) { av_close_input_stream(((lp_ac_data)(pacInstance))->pFormatCtx);
pacInstance->opened = 0;
- /*
- Auto freed by av_close_input_stream
- if (((lp_ac_data)(pacInstance))->buffer) {
+ //If the seek proc has not been specified, the input buffer is not automatically
+ //freed, as ffmpeg didn't get the original pointer to the buffer
+ if (!((lp_ac_data)(pacInstance))->seek_proc &&
+ ((lp_ac_data)(pacInstance))->buffer) {
av_free(((lp_ac_data)(pacInstance))->buffer);
- }*/
+ }
}
}
|