summaryrefslogtreecommitdiff
path: root/src/demuxers
AgeCommit message (Collapse)Author
2008-05-09Avoid loop for common memory operations (zeroing, copying, moving).Diego 'Flameeyes' Pettenò
Use the proper function for common memory operations (memset() for zeroing, memcpy() for copying, memmove() for moving), instead of looping through arrays. By extension, remove loops to reset arrays when they were allocated with calloc() and thus already zeroed.
2008-05-09Remove a new bunch of xine_malloc() calls.Diego 'Flameeyes' Pettenò
Also don't reset memory after it's allocated if we do that with calloc.
2008-05-07Avoid memset() on newly allocated memory areas.Diego 'Flameeyes' Pettenò
If needed, use calloc() to allocate the area so that it's already reset by the time it returns.
2008-05-07Merge file removal.Diego 'Flameeyes' Pettenò
2008-05-07xine_xmalloc() deprecation: replace its use with static and non-zero size.Diego 'Flameeyes' Pettenò
The xine_xmalloc() function is going to be deprecated, as its behaviour is rarely needed as such, and it's thus misused. With this, almost all uses of xine_xmalloc() with static size (for instance the value returned by sizeof()) or with a size that is guaranteed not to be zero (like strlen()+1) are replaced with calls to either calloc(1, ...) or malloc(). malloc() is used whenever the allocated memory is going to be immediately overwritten, while calloc() is used in every other case, as it sets the whole memory area to zero. --HG-- extra : transplant_source : %8F%98%EC%02%1E%83%F0s%06X%83C%205Y%80%B12%CC%E1
2008-05-07Mark internal functions and data structures static.Diego 'Flameeyes' Pettenò
Functions and data structures that are not exported and are only ever used in the same unit they are defined should be marked static to improve compiler's ability to optimise them. This applies to xine_dispose_internal() function for xine-lib, the extended_to_int() function in the AIFF demuxer, the bandwidths array in QuickTime demuxer, the wc_pal_lookup table in the WC3 movie demuxer, and the rm_header and pnm_data_header arrays in pnm input plugin.
2008-05-06Merge from 1.1.Darren Salt
--HG-- rename : include/xine.h.in => include/xine.h rename : src/xine-utils/attributes.h => include/xine/attributes.h rename : src/xine-utils/xineutils.h => include/xine/xineutils.h rename : src/combined/decoder_flac.c => src/combined/flac_decoder.c rename : src/libxineadec/xine_speex_decoder.c => src/combined/xine_speex_decoder.c
2008-05-03Remove unused variables, as reported by GCC 4.3.Diego 'Flameeyes' Pettenò
2008-05-03Remove specific ID3v2 parsing funcion from the header file, always use the ↵Diego 'Flameeyes' Pettenò
generic one to access them.
2008-04-30Replace calloc (n, sizeof (char)) with malloc (n) where zero init isn't needed.Darren Salt
2008-04-21Merge from 1.1.Darren Salt
2008-04-21Add MIME types and .mpp for musepack.Darren Salt
2008-04-21Merge from 1.1.Darren Salt
--HG-- rename : src/demuxers/demux_nsf.c => src/combined/nsf_demuxer.c rename : src/libxinevdec/bitplane.c => src/video_dec/bitplane.c
2008-04-19Replace xine_xcalloc usage with calloc, for the revisions transplanted from ↵Diego 'Flameeyes' Pettenò
1.2 series.
2008-04-15Merge from 1.1.Darren Salt
--HG-- rename : debian/libxine1.install => debian/libxine2.install rename : src/libxineadec/xine_speex_decoder.c => src/combined/xine_speex_decoder.c rename : src/libsputext/demux_sputext.c => src/spu_dec/sputext_demuxer.c
2008-04-14Remove a memset() rendered pointless by use of calloc().Darren Salt
2008-04-14divide by zero in demux_qt.cColin Gibbs
On some m4a files I get a divide by zero. bytes_per_packet in this case is zero. I'm not sure what the real problem is but skipping the assignment in that case works fine.
2008-04-09Compilation fixes, mostly ffmpeg-related, and linkage fixes.Darren Salt
Tests done on amd64 with ffmpeg 0.svn20080206 from Debian experimental. libavcodec 51.50.0, libavutil 49.6.0, libpostproc 51.1.0
2008-04-09Merge from 1.2 main.Darren Salt
2008-04-08Merge from 1.1.Darren Salt
--HG-- rename : src/xine-engine/buffer.h => include/xine/buffer.h rename : src/libmad/xine_mad_decoder.c => src/audio_dec/xine_mad_decoder.c rename : src/combined/combined_wavpack.c => src/combined/wavpack_combined.c
2008-04-07Fix vorbis initialization problem in the matroska demuxer due to my last ↵Thibaut Mattern
vorbis bugfix. The Vorbis init has to be fixed in a better way, split logic has to be added here, maybe by reusing demux.c code.
2008-04-07Implement support for "MPEG-3 adu".Jinghua Luo
2008-04-07Move the sipro codec swap data & code into a common header.Darren Salt
2008-04-07Use ffmpeg's cook decoder and fix Real decoder bugsJinghua Luo
This patch drops support for RV20.
2008-04-06Merge from 1.1; adapt xine-list for 1.2.Darren Salt
--HG-- rename : debian/libxine1.install => debian/libxine2.install rename : src/demuxers/demux_ogg.c => src/combined/xine_ogg_demuxer.c
2008-04-06Add some newer Ogg MIME types.Darren Salt
2008-04-05Fix a regression in the Matroska demuxer.Darren Salt
One '&'...
2008-04-02Merge from 1.1.Darren Salt
--HG-- rename : src/combined/demux_wavpack.c => src/combined/wavpack_demuxer.c
2008-03-31Revert a change which broke Quicktime atom parsing.Darren Salt
2008-03-30Add video/x-matroska.Darren Salt
2008-03-29Merge from 1.1.Darren Salt
--HG-- rename : src/libxineadec/xine_lpcm_decoder.c => src/audio_dec/xine_lpcm_decoder.c
2008-03-26Merge from 1.1.Darren Salt
2008-03-26Be more careful with malloc(x+1), particularly on 32-bit.Darren Salt
2008-03-26calculate AIFF files samplerate from 80-bit float, fixes wrong playback of ↵Kirill Belokurov
some AIFF files
2008-03-28AIFF comment chunks are word-aligned, so we should seek extra byte for themKirill Belokurov
2008-03-27read only full frames into buffer - otherwise decoder will lose trailing ↵Kirill Belokurov
bytes for 24bit AIFF
2008-03-28More checking for memory allocation failures.Darren Salt
2008-03-23Replace various malloc(x*sizeof(y)) with calloc(x,sizeof(y)).Darren Salt
2008-03-23Check for failure of various memory allocations. (SA29484)Darren Salt
Ref. http://aluigi.altervista.org/adv/xinehof-adv.txt
2008-03-24WAV demuxer: search for the 'fmt ' chunk instead of assuming it's the first oneKirill Belokurov
(fixes playback of some files) --HG-- extra : transplant_source : %F0N%EC%A4v%94%CA%1F%05%E3%E2%AC%5D8-%18c%AD%B1%E4
2008-03-12Merge from 1.1.Darren Salt
--HG-- rename : doc/faq/faq.sgml => doc/faq/faq.docbook rename : src/xine-engine/xine_internal.h => include/xine/xine_internal.h rename : src/libffmpeg/Makefile.am => src/combined/ffmpeg/Makefile.am rename : src/demuxers/demux_ogg.c => src/combined/xine_ogg_demuxer.c
2008-03-07Get rid of some "may be used uninitialised" warnings.Darren Salt
2008-03-04Merge from 1.1.Darren Salt
--HG-- rename : include/xine.h.in => include/xine.h rename : src/libdts/xine_dts_decoder.c => src/audio_dec/xine_dts_decoder.c rename : src/libmpeg2/decode.c => src/video_dec/libmpeg2/decode.c
2008-03-02Reorganise DTS audio type detection (ready for LE16 & BE14); changelog entry.Darren Salt
2008-03-01Update to the new FFmpeg's include directory.Diego 'Flameeyes' Pettenò
This also allows to remove the comment stating the includes come from libavutil, as it's now explicit.
2008-03-01Merge from 1.2 tip.Diego 'Flameeyes' Pettenò
--HG-- rename : src/combined/ffmpeg/ff_dvaudio_decoder.c => src/audio_dec/ff_dvaudio_decoder.c
2008-02-29Merge from 1.1.Darren Salt
--HG-- rename : src/combined/demux_wavpack.c => src/combined/wavpack_demuxer.c
2008-02-22added patch for 16bit big endian DTS detectionKirill Belokurov
--HG-- extra : transplant_source : %5C%D4ln%1C%B8Up%88%96R%09%1A%05HQ%3C%F8%CE%08
2008-02-20Off-by-one in the FLAC security fix, breaking playback of some files.Darren Salt
2008-02-18Timecode diff is signed.Thibaut Mattern
Should fix bug 35. --HG-- extra : transplant_source : %DD%95%9F%A7%8D%01%BD%98%40%E4R%AAW%F2%ED%93%B2%DE%1A%E9