summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demux_real.c
Commit message (Collapse)AuthorAgeFilesLines
* demux_real.c: Always use MP_NOPTS_VALUE for unknown ptsuau2008-04-121-1/+1
| | | | | | | | | | demux_real.c still had code that used either 0 or MP_NOPTS_VALUE for unknown timestamps depending on correct_pts setting. It should have been removed in svn commit 25988 "Change to always use MP_NOPTS_VALUE (instead of sometimes 0) for unknown pts.". git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26413 b3059339-0415-0410-9bf9-f77b7e298cf2
* FFmpeg now uses different (unified) #include paths.diego2008-02-251-3/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26101 b3059339-0415-0410-9bf9-f77b7e298cf2
* Allow demuxers to choose a default value for correct_ptsreimar2008-02-031-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25951 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use defines to give names to the different seek flags.reimar2008-01-291-3/+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
* Don't overread audio datartogni2008-01-061-1/+14
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25628 b3059339-0415-0410-9bf9-f77b7e298cf2
* Don't dynamically allocate sub_packet_lengths[] in raac demuxing.rtogni2008-01-061-3/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25627 b3059339-0415-0410-9bf9-f77b7e298cf2
* Print warning about encrypted audio tracksrtogni2007-11-151-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25055 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused code and fix warning:diego2007-10-211-14/+0
| | | | | | | demux_real.c:147: warning: 'skip_str' defined but not used git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24827 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix format string to match actual type.reimar2007-06-241-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23652 b3059339-0415-0410-9bf9-f77b7e298cf2
* Declarations and code should not be mixed.diego2007-04-251-2/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23107 b3059339-0415-0410-9bf9-f77b7e298cf2
* with -identify show audio and video id; patch by Andrew Savchenko (Bircoph ↵nicodvb2007-04-201-0/+3
| | | | | | list ru) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23028 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
* Call real_fix_timestamp() after seeking, to avoid video freezing rtogni2007-01-271-3/+13
| | | | | | | | because of wrong timestamps. Fixes seek_sample2.rmvb and others. Patch by LR ))) hephooey ))(( gmail )( com ((( git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22036 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use interleaver id to select the correct interleaver instead of guessing rtogni2007-01-241-23/+21
| | | | | | | it from the codec id. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22007 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove superfluous bswap.h include.diego2006-12-021-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21437 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix extradata passing to lavc RV20 decoderrtogni2006-11-141-48/+10
| | | | | | | | | | | | Pass video codec extradata unchanged from demux_real, sync vd_realvid to the new format Sync mkv demuxer to the changes above (cmsg24 extradata was totally broken before) Detect cmsg24 size from extradata (was fixed) Based on a patch by elupus >> elupus >a< ecce se << git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20936 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change some constants in pts arithmetic from float to double.uau2006-11-091-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20811 b3059339-0415-0410-9bf9-f77b7e298cf2
* Changed code that used pts=0 in demux packets to indicate "not known".uau2006-11-091-13/+13
| | | | | | | Now demux_real should be usable with -correct-pts. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20810 b3059339-0415-0410-9bf9-f77b7e298cf2
* Prevent segfault if video codec init failsrtogni2006-10-291-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20515 b3059339-0415-0410-9bf9-f77b7e298cf2
* Quick hack to implement percent-based seeking, also fixes seeking with gmplayerreimar2006-10-291-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20508 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix timestamps for streams where kf_base gets negativertogni2006-10-151-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20235 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove useless assignements, thanks reimar for noticing themrtogni2006-10-141-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20204 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove old hack to search for .ar and VIDO, we know where they arertogni2006-10-111-16/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20165 b3059339-0415-0410-9bf9-f77b7e298cf2
* Allows up to 8 bytes of extradata for cmsg24rtogni2006-10-101-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20150 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix extradata lenght when adding cmsg24 datartogni2006-10-101-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20149 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cleanup: remove some old commented out skipsrtogni2006-10-101-10/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20148 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix problems on live streams with huge timestamps, causing overflows and rtogni2006-10-091-25/+27
| | | | | | | | negative pts values. It also changes pts to double, since there is no enough precision in float to represent 32bit uint timestamps. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20145 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make fill_buffer function check for stream eof, fixes hang at eof (bug #580)reimar2006-09-241-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19966 b3059339-0415-0410-9bf9-f77b7e298cf2
* Missing part of previous patch to demux_real.c (revision 19958)reimar2006-09-231-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19960 b3059339-0415-0410-9bf9-f77b7e298cf2
* int->unsigned to avoid crash to sign extension, partially fixes bug #580reimar2006-09-231-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19958 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix some potential integer overflow in memory allocation (mot of thesertognimp2006-05-141-5/+10
| | | | | | | were probably safe or disabled anyway) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18506 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix potential integer overflows in memory allocation. Patch by Reimar and ↵rtognimp2006-05-111-2/+9
| | | | | | me, SIZE_MAX by Rich git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18445 b3059339-0415-0410-9bf9-f77b7e298cf2
* Part3 of Otvos Attila's oattila AT chello-hu mp_msg changes, with lots of ↵reynaldo2006-04-221-2/+2
| | | | | | modifications as usual git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18177 b3059339-0415-0410-9bf9-f77b7e298cf2
* always cast stream IDs to unsigned before comparing to MAX_STREAMS.reimar2006-04-151-4/+4
| | | | | | | just defining them as unsigned might be a better fix though... git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18107 b3059339-0415-0410-9bf9-f77b7e298cf2
* Convert printfs in aviprint.c to mp_msg and give the information printingdiego2006-03-271-2/+2
| | | | | | | functions in this file a verbosity_level parameter. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17978 b3059339-0415-0410-9bf9-f77b7e298cf2
* Convert all if(verbose>X) to mp_msg_test calls.diego2006-03-241-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17933 b3059339-0415-0410-9bf9-f77b7e298cf2
* Only MAX_STREAMS streams are allowed (cid 115)rtognimp2006-03-111-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17811 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix potential read from an unitialized pointer (CID: 236)rtognimp2006-03-091-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17789 b3059339-0415-0410-9bf9-f77b7e298cf2
* stream_id == MAX_STREAMS is invalid, since counting starts with 0.reimar2006-03-081-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17777 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
* Print some more useful data from header in verbose modertognimp2006-01-151-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17402 b3059339-0415-0410-9bf9-f77b7e298cf2
* Always try to parse index chunk, no reason to check for movi_endreimar2006-01-141-4/+2
| | | | | | | Also check return value of parse_index_chunk git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17395 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix printing of audio fourcc in hex formatrtognimp2006-01-141-1/+1
| | | | | | | Add explicit cast to fourcc print git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17392 b3059339-0415-0410-9bf9-f77b7e298cf2
* Print audio 4cc for every stream, print 4cc of selected audio trackrtognimp2006-01-141-0/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17389 b3059339-0415-0410-9bf9-f77b7e298cf2
* massive attack: mp_msg printf format fixesrathann2006-01-121-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17367 b3059339-0415-0410-9bf9-f77b7e298cf2
* include the right avcodec.h, consistently with the rest of mplayernicodvb2006-01-081-2/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17344 b3059339-0415-0410-9bf9-f77b7e298cf2
* Don't leak memory (free audio reordering buffers)rtognimp2006-01-041-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17319 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove assumption that all audio packets in a block have the samertognimp2006-01-041-4/+7
| | | | | | | | | timestamp; now the code stores timestamp for every packet and puts them on reordered packets Fixes ra10cook.rmvc git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17318 b3059339-0415-0410-9bf9-f77b7e298cf2
* 1000.0l timestamps are floatrtognimp2006-01-041-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17317 b3059339-0415-0410-9bf9-f77b7e298cf2
* malloc padding to avoid access beyond allocated memoryhenry2005-12-191-1/+8
| | | | | | | Credits to Mikulas Patocka (mikulas at artax karlin mff cuni cz) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17227 b3059339-0415-0410-9bf9-f77b7e298cf2
* make demuxer seek and close functions return void, patch by Dominik Mierzejewskiwanderer2005-12-111-3/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17175 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move audio packets reordering from codec interface to demuxers for realrtognimp2005-12-091-74/+126
| | | | | | | | | files (old and new format), pass only real extradata to the codec Enable cook codec from lavc, prefer lavc codecs for 14_4 and 28_8 formats. Disable internal 28_8, it's broken now and will be removed soon git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17150 b3059339-0415-0410-9bf9-f77b7e298cf2
* move resync_audio_stream after seeking to demuxer.creimar2005-10-301-4/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16878 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-8/+26
| | | | | | | Demuxer selection by name with -demuxer command (bakward compatible) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16176 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix rm files with a really big index chunk.reimar2005-03-031-0/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14898 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not read any more data at eof: if got eof in the middle of an audiortognimp2005-01-241-0/+1
| | | | | | | | block, ad_realaudio requests more data even if sh->audio->eof Fixes sig11 at eof of hotel_california_ra5.1_640x480_30s.rmvb git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14587 b3059339-0415-0410-9bf9-f77b7e298cf2
* Be less verbose with -v (do not print a line for each demuxed packet)rtognimp2005-01-241-2/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14586 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reduce excessive verbosity.diego2005-01-221-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14579 b3059339-0415-0410-9bf9-f77b7e298cf2
* Play RV30 with 8-elements cmsg24rtognimp2005-01-221-5/+15
| | | | | | | Fixes rv30_cmsg24_test.rmvb (now in samples) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14569 b3059339-0415-0410-9bf9-f77b7e298cf2
* Decode MP3 in rm filesrtognimp2005-01-151-4/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14499 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reduce index verbosityrtognimp2005-01-061-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14404 b3059339-0415-0410-9bf9-f77b7e298cf2
* Real multirate files supportrtognimp2005-01-061-27/+231
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14403 b3059339-0415-0410-9bf9-f77b7e298cf2
* Print waveheader only when verbosereimar2005-01-061-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14396 b3059339-0415-0410-9bf9-f77b7e298cf2
* Memleak fix: free index data at demuxer_closertognimp2004-11-011-1/+6
| | | | | | | Patch by Wei Jiang ( jiangw98 at yahoo dot com ) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13838 b3059339-0415-0410-9bf9-f77b7e298cf2
* do not attempt to seek backward in stream on MDPR chunk with no codec datareimar2004-08-101-0/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12993 b3059339-0415-0410-9bf9-f77b7e298cf2
* index creation/reading behaviour just like the avi demuxer, patch based on ↵alex2004-06-251-14/+26
| | | | | | work by Reza Jelveh, Moritz Bunkus und myself git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12666 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100l for me. Header seek is not needed to fix 28_8 and can cause sig11rtognimp2004-05-011-4/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12368 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix for 28_8 in rm files and header length != 0x4ertognimp2004-04-271-1/+17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12328 b3059339-0415-0410-9bf9-f77b7e298cf2
* Stop reading the file if an INDX chunk is found instead of a data packet.mosu2004-03-281-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12077 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support for v3 audio section (used with 14_4 codec) in real filesrtognimp2004-02-221-0/+58
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11990 b3059339-0415-0410-9bf9-f77b7e298cf2
* 1000000000l reported by Steven Schultz (thanks!)rfelker2004-01-301-1/