summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demux_avs.c
Commit message (Collapse)AuthorAgeFilesLines
* cleanup: malloc+memset->calloc, sizeof(TYPE)->sizeof(*ptr)reimar2010-11-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace malloc+memset by calloc git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32181 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace malloc+memset by calloc. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32182 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace malloc+memset by calloc. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32183 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace some sizeof(type) by sizeof(*pointer) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32184 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace malloc+memset by calloc. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32186 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace malloc+memset by calloc. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32187 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace malloc+memset by calloc git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32188 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace sizoef(type) by sizeof(*ptrvar). Besides being consistent with FFmpeg style, this reduces the size of a patch to rename these types to not conflict with the windows.h definitions. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32189 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace malloc+memset by calloc. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32191 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace malloc+memset by calloc. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32192 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace sizeof(type) by sizeof(*ptrvar) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32193 b3059339-0415-0410-9bf9-f77b7e298cf2 Remove a useless cast. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32194 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace sizeof(type) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32195 b3059339-0415-0410-9bf9-f77b7e298cf2 Remove a useless cast. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32196 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace several sizeof(WAVEFORMATEX) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32197 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace one more instance of sizeof(WAVEFORMATEX); fix compilation. patch by Clément Bœsch, ubitux gmail com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32199 b3059339-0415-0410-9bf9-f77b7e298cf2 Avoid some pointless uses of sizeof() and one related cast. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32200 b3059339-0415-0410-9bf9-f77b7e298cf2 Merge one malloc() + memset() invocation into calloc(). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32202 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace malloc+memset by calloc git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32203 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace sizeof(WAVEFORMATEX) occurrences. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32205 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace malloc+memset by calloc. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32206 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace sizeof(BITMAPINFOHEADER) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32207 b3059339-0415-0410-9bf9-f77b7e298cf2
* cleanup: #include loader/wine/winbase.h instead of local declarationsdiego2010-11-021-4/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31414 b3059339-0415-0410-9bf9-f77b7e298cf2
* Delete things related to old translation systemUoti Urpala2010-03-101-1/+0
| | | | | Remove the help/ subdirectory, configure code to create toplevel help_mp.h, and all the '#include "help_mp.h"' lines from .c files.
* Remove trailing whitespace from most filesUoti Urpala2009-07-071-33/+33
|
* Merge svn changes up to r27649Uoti Urpala2008-09-201-9/+10
|\ | | | | | | | | | | | | Conflicts: Makefile configure libvo/x11_common.c
| * Upgrade license of LGPL 2 or later files to LGPL 2.1 or later.diego2008-09-151-9/+10
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27614 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Make various functions staticUoti Urpala2008-08-121-1/+1
|/
* Take audio delay into account when seeking in avisynth demuxer.reimar2008-04-231-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26505 b3059339-0415-0410-9bf9-f77b7e298cf2
* Calculate fps as double-precision to make switching to double-precision fps ↵reimar2008-04-231-1/+1
| | | | | | values easier. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26504 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use defines to give names to the different seek flags.reimar2008-01-291-4/+2
| | | | | | | | A better solution should be considered later, esp. for the many broken demuxers that do not treat these flags correctly. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25911 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make all demuxer_desc_t const, thus moving them to .rodatareimar2008-01-131-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25735 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use explicit path for headers from the loader/ directory.diego2007-03-151-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22624 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add explicit location for headers from the stream/ directory.diego2007-03-151-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22623 b3059339-0415-0410-9bf9-f77b7e298cf2
* Audio should now work fine, so remove the ENABLE_AUDIO ifdefreimar2007-03-051-5/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22468 b3059339-0415-0410-9bf9-f77b7e298cf2
* Implement percent-based seekingreimar2007-03-051-0/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22467 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix seeking for avisynth audio.reimar2007-03-051-6/+14
| | | | | | Based on patch by Alexander Ponyatikh (ranma at 274 ru). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22466 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix DEMUXER_CTRL_GET_PERCENT_POS with -novideoreimar2007-03-051-1/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22465 b3059339-0415-0410-9bf9-f77b7e298cf2
* remove pointless cast to intreimar2007-03-051-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22464 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove variable that is unnecessary after last patchreimar2007-03-041-2/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22452 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove hack that sets demuxer->video->pts after seeking, it seems no longer ↵reimar2007-03-041-1/+0
| | | | | | needed. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22451 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set pts also for audio packetsreimar2007-03-041-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22450 b3059339-0415-0410-9bf9-f77b7e298cf2
* Already frameno == num_frames means we reached EOF.reimar2007-03-041-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22449 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix crash with avisynth audio-only files and take audio length into account ↵reimar2007-03-041-2/+5
| | | | | | when length is queried. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22448 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support more avisynth audio sample types (untested)reimar2007-03-041-2/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22447 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove useless void * castsreimar2007-03-041-8/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22446 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not read more audio samples than availablereimar2007-03-041-1/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22445 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix pakcet -> packet typo in outputreimar2007-03-041-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22444 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set format tag for float samples correctly (currently useless)reimar2007-03-041-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22443 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move/simplify some variable declarationsreimar2007-03-041-5/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22440 b3059339-0415-0410-9bf9-f77b7e298cf2
* Demuxers have no business setting o_bpsreimar2007-03-041-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22439 b3059339-0415-0410-9bf9-f77b7e298cf2
* First half-working avisynth audio supportreimar2007-03-041-4/+15
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22438 b3059339-0415-0410-9bf9-f77b7e298cf2
* ENABLE_AUDIO now selects only between -nosound and -aid 0 as default, can be ↵reimar2007-03-041-10/+4
| | | | | | overridden at runtime. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22436 b3059339-0415-0410-9bf9-f77b7e298cf2
* Enable aid/vid stream selection, although it is quite useless currently.reimar2007-03-041-4/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22435 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix type and usage of avs_get_audio functionreimar2007-03-041-3/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22432 b3059339-0415-0410-9bf9-f77b7e298cf2
* The FSF changed postal address.diego2006-09-011-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19620 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l, last commit swapped U and V planes.reimar2006-07-281-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19224 b3059339-0415-0410-9bf9-f77b7e298cf2
* Handle frames with stride correctly (e.g. the "Version" source of current AVS).reimar2006-07-281-2/+16
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19223 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not count each decoded frame twice.reimar2006-07-281-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19222 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics for last commitreimar2006-07-281-10/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19219 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move more stuff under if (avs_has_video... to simplify later patches.reimar2006-07-281-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19218 b3059339-0415-0410-9bf9-f77b7e298cf2
* set pts of the demux patcket correctlyreimar2006-07-281-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19217 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move variable declarations to the block level where they are actually usedreimar2006-07-281-11/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19216 b3059339-0415-0410-9bf9-f77b7e298cf2
* call av_release_clip at uninit, part of a patch by Gianluigi Tiesi <mplayer ↵reimar2006-07-281-1/+6
| | | | | | at netfarm it> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19215 b3059339-0415-0410-9bf9-f77b7e298cf2
* Second-try commit of this patch.corey2006-02-171-1/+1
| | | | | | | | | | | | 1. Include audio_delay as an argument to demux_seek. 2. Modify demux_seek_avi to adjust the audio/video stream positions so that mplayer/mencoder will instantly be in sync even when -delay is specified. I've quadruple checked this time; hopefully I haven't missed anything. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17637 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reverse commit of unfinished patch for passing audio_delay to the demuxers.corey2006-02-091-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17570 b3059339-0415-0410-9bf9-f77b7e298cf2
* 1. Include audio_delay as an argument to demux_seek.corey2006-02-071-1/+1
| | | | | | | | | | | 2. Modify demux_seek_avi to adjust the audio/video stream positions so that mplayer/mencoder will instantly be in sync even when -delay is specified. Other demuxers could be modified similarly in the future. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17554 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make -identify's 'ID_LENGTH=' print a float and not an integer.. Theods152005-09-021-1/+1
| | | | | | | | accuracey may be totally fake for some demuxers (mpg), but accurate for others.. (avi) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16347 b3059339-0415-0410-9bf9-f77b7e298cf2
* Demuxer modularizationrtognimp2005-08-051-16/+36
| | | | | | | Demuxer selection by name with -demuxer command (bakward compatible) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16176 b3059339-0415-0410-9bf9-f77b7e298cf2
* memory leak fixes, patch by Gianluigi Tiesi <mplayer at netfarm.it>faust32005-06-021-5/+19
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15614 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fixes double import of avs_create_script_environment.gpoirier2005-04-301-1/+0
| | | | | | | Patch by Gianluigi Tiesi < mplayer & netfarm * it > git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15299 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10lfaust32005-02-131-2/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14696 b3059339-0415-0410-9bf9-f77b7e298cf2
* avisynth demuxer patch by Gianluigi Tiesi <mplayer at netfarm.it>faust32005-02-131-0/+405
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14694 b3059339-0415-0410-9bf9-f77b7e298cf2