Mercurial > mplayer.hg
view libaf/config.h @ 18708:9e2b300db17b
Change free_sh_audio() to take demuxer and stream id as parameters
(same as new_sh_audio()) instead of sh_audio_t *, use those to remove
the pointer from demuxer->a_streams[] before freeing it.
Some demuxers use free_sh_audio() to undo the creation of an
already-allocated audio stream in case of error. These uses were unsafe
since free_sh_audio() freed the data structure but left the pointer in
demuxer->a_streams[], leading to double free later in free_demuxer()
(and perhaps use of the freed stream before that, I didn't check).
author | uau |
---|---|
date | Wed, 14 Jun 2006 14:05:59 +0000 |
parents | ade823c5c294 |
children |
line wrap: on
line source
/*============================================================================= // // This software has been released under the terms of the GNU General Public // license. See http://www.gnu.org/copyleft/gpl.html for details. // // Copyright 2002 Anders Johansson ajh@watri.uwa.edu.au // //============================================================================= */ #ifndef __af_config_h__ #define __af_config_h__ #include "../config.h" // WORDS_BIGENDIAN #ifndef MPLAYER_CONFIG_H #error Mandatory WORDS_BIGENDIAN does not contain 0 nor 1 #endif // Number of channels #ifndef AF_NCH #define AF_NCH 6 #endif #endif /* __af_config_h__ */