summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demux_real.c
Commit message (Collapse)AuthorAgeFilesLines
* 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/+2
| | | | | | | | | | when the hell was this c++ crap added? why wasn't it noticed? do all the competent developers --disable-real because we don't watch crappy low-quality files? git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11887 b3059339-0415-0410-9bf9-f77b7e298cf2
* add support for aac in real media filesattila2004-01-291-0/+37
| | | | | | | patch by Moritz Bunkus <moritz@bunkus.org> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11878 b3059339-0415-0410-9bf9-f77b7e298cf2
* continue playing real files after errorsattila2004-01-291-27/+36
| | | | | | | | patch by Pekka Enberg <Pekka.Enberg@cs.helsinki.fi> additionally changed all printfs to mp_msg git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11871 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix for Real files with header size == 0x10 (normally is 0x12)rtognimp2004-01-161-5/+10
| | | | | | | | (fixes sample file header_size_10.rmvb) Patch by LR <hephooey (at) fastmail (dot) fm> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11798 b3059339-0415-0410-9bf9-f77b7e298cf2
* 1000l to mealex2003-12-091-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11607 b3059339-0415-0410-9bf9-f77b7e298cf2
* Proper runtime index generation with support for growing files. Patch by ↵alex2003-12-081-67/+148
| | | | | | rgselk <rgselknospam@yahoo.com> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11597 b3059339-0415-0410-9bf9-f77b7e298cf2
* seek in realmedia filesluran2003-11-121-49/+176
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11442 b3059339-0415-0410-9bf9-f77b7e298cf2
* serious bugs - 1l absinth (changed to absinth against cola inflation)alex2003-08-311-8/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10736 b3059339-0415-0410-9bf9-f77b7e298cf2
* BBC .rm fix, based on patch by Balatoni Denes <pnis@coder.hu>arpi2003-08-021-1/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10509 b3059339-0415-0410-9bf9-f77b7e298cf2
* removing my (nonworking) email addressalex2003-07-031-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10369 b3059339-0415-0410-9bf9-f77b7e298cf2
* typo in console outputdiego2003-06-281-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10343 b3059339-0415-0410-9bf9-f77b7e298cf2
* skip dnet/ac3 byteswappingarpi2003-05-171-1/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10119 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support codecs 14_4 and 28_8rtognimp2003-04-301-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10033 b3059339-0415-0410-9bf9-f77b7e298cf2
* - fixed playback of files with bad WxH in header (tricky! we can always read thearpi2003-03-101-16/+32
| | | | | | | | | | secondary WxH values, but only the codec can decide which one is the correct...) - better fps parsing - print VIDEO: line with codec info based on patch by Balatoni Denes <pnis@coder.hu> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9562 b3059339-0415-0410-9bf9-f77b7e298cf2
* Hopefully fixed all RV30/RV40 A-V sync issuesarpi2003-03-091-9/+24
| | | | | | | based on patch by Balatoni Denes <pnis@coder.hu> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9556 b3059339-0415-0410-9bf9-f77b7e298cf2
* Redundant packet ignoring is RV30-only (at least frame-header flag 0x20 is)arpi2003-03-091-2/+2
| | | | | | | | noticed by Balatoni Denes <pnis@coder.hu> [sample files: pro: DISK1.RM contra: spygames-2MB.rmvb] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9554 b3059339-0415-0410-9bf9-f77b7e298cf2
* rv40 pict_type parsermichael2003-03-071-5/+19
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9544 b3059339-0415-0410-9bf9-f77b7e298cf2
* commented out nonsensealex2003-02-211-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9473 b3059339-0415-0410-9bf9-f77b7e298cf2
* disable num_of_packets check, it's unreliablearpi2003-02-041-0/+2
| | | | | | | (multiple bugreports on -users) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9274 b3059339-0415-0410-9bf9-f77b7e298cf2
* sanity checkarpi2003-01-121-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8928 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed playback of pnm:// streamed filesarpi2002-12-261-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8570 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning patch by (Dominik Mierzejewski <dominik at rangers dot eu dot org>)michael2002-11-231-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8255 b3059339-0415-0410-9bf9-f77b7e298cf2
* *HUGE* set of compiler warning fixes, unused variables removalarpi2002-11-061-0/+2
| | | | | | | based on patch by Dominik Mierzejewski <dominik@rangers.eu.org> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8124 b3059339-0415-0410-9bf9-f77b7e298cf2
* move timestamp debug printf to higher verbose level (hope it's ok)atmos42002-11-051-1/+1
| | | | | | | probably should move to mp_msg git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8114 b3059339-0415-0410-9bf9-f77b7e298cf2
* ASF-style stream auto-selection, to fix files with fake a/v streams (onlyarpi2002-11-051-96/+44
| | | | | | | | | header, no actual data packets) Hmm, maybe i should merge ASF & RM demuxers - both formats has the same bugs and are very similar anyway... git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8110 b3059339-0415-0410-9bf9-f77b7e298cf2
* - realaudio ATRC (sony atrac3) codec supportarpi2002-11-041-13/+45
| | | | | | | | - fixed passing of codecdata from demuxer to codec patch by Fabian Franz <FabianFranz@gmx.de> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8095 b3059339-0415-0410-9bf9-f77b7e298cf2
* verbose can be negativearpi2002-11-011-1/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8028 b3059339-0415-0410-9bf9-f77b7e298cf2
* stream selection cleanup, fixed -nosoundarpi2002-10-101-111/+71
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7711 b3059339-0415-0410-9bf9-f77b7e298cf2
*