Commit Graph

2130 Commits

Author SHA1 Message Date
ben 808992064d avoid messing up with includes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18839 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-27 19:16:43 +00:00
ben 3b2c495798 don't declare same global var twice (break live555 compilation)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18836 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-26 22:00:44 +00:00
ben 054b52cb01 added new native rtsp demuxer code for mpeg-ts over rtp (now both real and non-real servers should be handled)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18833 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-26 21:27:57 +00:00
ben 155f9d742f new imported library in libmpdemux: freesdp (will be used by native rtsp demuxer)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18827 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-26 17:37:55 +00:00
ben b31df04b82 cosmetic changes to avoid constants redefinition
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18826 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-26 17:27:38 +00:00
reimar ee00cceb8b Forgotten free on error
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18813 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-25 14:02:28 +00:00
nicodvb 64fb0e7cd3 exit() is not allowed in any other function than main(); removed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18808 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-24 09:41:41 +00:00
nicodvb c3fafa8324 fprintf -> ms_msg
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18807 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-24 09:30:23 +00:00
nicodvb 0d0ed504d8 static-ized a couple of functions
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18806 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-24 09:27:07 +00:00
nicodvb 8f18af19d9 rtp reordering of packets; patch by Ernitron (ernitron@fastwebnet.it)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18805 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-24 09:10:06 +00:00
ben 7473a37fcc prevent a buffer overflow to occur at teardown
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18804 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-23 22:23:07 +00:00
ben 4bb2bf6ec5 moved generic rtsp related files from realrtsp to librtsp
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18802 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-23 21:38:28 +00:00
ben 7afb388858 remove some never called code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18801 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-23 20:32:32 +00:00
ben 6d9101a25c prevent most RTSP streams from locking due to -idx
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18800 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-23 20:28:12 +00:00
ben 3befb06756 removed some includes that are now useless
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18798 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-23 20:18:48 +00:00
ben 8203e47d0c new RTSP demuxer dedicated file, based on old code from realrtsp one but intended to be much more generic
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18797 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-23 20:17:12 +00:00
ben e1437c6af8 some printf() to mp_msg() replacements
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18796 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-23 19:34:06 +00:00
ben 67d4bff07e move real_rtsp init/uninit code to its dedicated place to simplify a bit rtsp session demuxer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18795 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-23 19:30:15 +00:00
diego 57f3213401 CVS --> Subversion in copyright notices
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18786 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-22 13:34:00 +00:00
nicodvb 4e5235e91f support for -alang
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18778 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-21 19:24:17 +00:00
ben dd6c38075d cosmetic changes (defines will be used later in other parts of the code)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18777 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-21 17:50:50 +00:00
ben dbd687fd37 better RTSP RFC compliance (fixes in CSeq and TEARDOWN handling)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18775 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-21 17:39:27 +00:00
nicodvb e9f0940c47 support for audio stream switching
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18765 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-20 19:57:16 +00:00
aurel 95db10787d fix a buffer overflow causing a segfault
(original patch by Vladimir Voroshilov < voroshil _at_ univer.omsk.su >)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18764 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-20 11:48:39 +00:00
nicodvb ffd83d3e2a Remove misleading Encrypted VOB message; patch by Ismail Donmez (ismail ab pardus punctum org puntum tr)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18761 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-19 21:43:02 +00:00
nicodvb daaf965438 feed any audio track present in the mux; switch to any of the available audio tracks
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18757 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-19 18:34:29 +00:00
nicodvb 01526d08f8 try to reduce the distance between consecutive frames with pts to no more than 0.4 seconds (required by dvds)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18754 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-18 16:40:29 +00:00
nicodvb d79d8b2ea4 prevent buffer overflow in the STD; simplified fill_packet() (moving part of the code to get_packet_stats())
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18748 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-18 10:39:09 +00:00
reimar e261eefda0 Fix crash with all audio-only ogg files, the vorbis_info struct is not
stored in the sh_audio context but in the demuxer priv element


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18740 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-17 15:01:43 +00:00
nicodvb 8e500b6d30 removed old dvdnav code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18735 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-16 19:06:00 +00:00
nicodvb d4b348d3ef reduced standard verbosity and changed output messages to more uniform descriptions
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18717 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-14 22:22:34 +00:00
nicodvb b74779d89a workaround: at every read update demux->movi_end with stream->end_pos; needed to show the progress bar when playing dvdnav streams
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18716 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-14 22:12:06 +00:00
nicodvb f1871d5766 restored support for dvdnav only in the stream layer; all other functionalities are disabled
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18715 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-14 21:58:17 +00:00
uau 6723323303 Clean up audio pts handling, make audio pts tracking in the audio-only
case work the same as with video.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18713 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-14 19:48:54 +00:00
uau 7022f65d0c 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).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18711 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-14 14:05:59 +00:00
uau a4850512c0 Remove extern declaration for free_sh_audio() that is both unused and
already present from stheader.h. (Would cause a compile error after my
next change.)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18710 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-14 13:47:11 +00:00
nicodvb be03496d6b support for audio stream switching
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18691 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-12 23:06:21 +00:00
nicodvb 2831b49bb5 include stream_dvd's interface from libmpdemux/stream_dvd.h
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18685 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-11 21:29:00 +00:00
nicodvb 689316c4d6 moved stream_dvd's interface to stream_dvd.h
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18684 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-11 21:26:35 +00:00
nicodvb 3253df6f12 now any audio stream can be chosen during DEMUXER_CTRL_SWITCH_AUDIO, irrispective of the codec used
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18683 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-11 21:18:25 +00:00
rtogni b6fb797e3c Protect SIZE_MAX use
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18672 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-09 23:19:13 +00:00
pacman 2f30f958b0 Fix declaration mixed in among statements in the recent dvr-ms code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18671 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-09 22:33:09 +00:00
nicodvb 7535dc582a moved store_ughvlc() before #ifdef HAVE_OGGVORBIS, so it can be used by other demuxers when libogg and/or libvorbis are missing
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18670 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-09 21:43:23 +00:00
nicodvb d96e0e658a support for vorbis in mp4/mov
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18668 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-09 21:30:06 +00:00
nicodvb 1fe2e1963e decoderConfigLen can be larger than 255 bytes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18667 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-09 21:29:18 +00:00
nicodvb 068fffa36a first vorbis packet before vorbis_synthesis_headeri() must have b_o_s==1
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18638 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-07 22:40:40 +00:00
pacman 2a8494d031 Patch from John Donaghy: "fix for audio and video in dvr-ms asf files"
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18610 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-06 23:34:21 +00:00
corey cf063c0e6f Fix a few minor spelling errors in comments.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18590 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-05 22:23:42 +00:00
rtogni 6f416d77ea Disable unsecure dumping of generic track with -v -v -v
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18584 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-05 19:00:23 +00:00
nicodvb 4b73c3e3a4 support for dts (identified only by the PMT, not from the bitstream)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18566 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-04 23:23:58 +00:00
nicodvb 38df528583 fixed wrong assignment of stream type in generic PES_PRIVATE1 streams (didn't respect the type qualified in the PMT)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18565 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-04 23:16:09 +00:00
nicodvb b938bd87d4 one more a52 descriptor (dvb impl., untested)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18564 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-04 23:11:40 +00:00
nicodvb 5bc7c25897 configurable tuning timeout
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18562 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-04 23:04:42 +00:00
rtogni 9da9317579 Fix potential integer overflows in memory allocation.
Patch by Rich and me


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18559 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-04 22:41:27 +00:00
diego 4b64ef7e8e Remove now obsolete .cvsignore files.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18556 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-02 11:24:33 +00:00
michael 4729952a40 metadata support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18555 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-30 23:23:28 +00:00
nicodvb fab6247393 psm longer than 1018 bytes is not allowed, thus invalid
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18550 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-18 18:05:10 +00:00
rathann 82bcbf62af Fix:
frequencies.c:1168: warning: initialization discards qualifiers from pointer target type
dvbin.c:843: warning: assignment from incompatible pointer type


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18514 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-14 22:06:17 +00:00
gpoirier 4d3cfebbc3 fix parsing of vobsub private data, patch by Evgeniy Stepanov <eugeni P stepanov A gmail P com>
Original thread:
Date: May 14, 2006 12:28 AM
Subject: [MPlayer-dev-eng] [BUG][PATCH] parsing of vobsub private data in mkv probably broken


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18508 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-14 16:18:41 +00:00
rtognimp cdb97ab7e0 Fix some potential integer overflow in memory allocation (mot of these
were probably safe or disabled anyway)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18506 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-14 15:51:05 +00:00
rathann 9ebd30010f missing argument for mp_msg, fixes:
demux_mov.c:1159: warning: too few arguments for format


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18492 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-13 21:12:43 +00:00
nicodvb 2f1b01e307 where necesary, replaced all realloc() with realloc_struct() to prevent int oveflows
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18476 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-13 10:49:46 +00:00
nicodvb a36608cd9a when searching ac3 in unqualified pes_private1 streams there's no need to scan > 64 KB of data: frames can't be so far apart
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18475 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-13 10:09:33 +00:00
nicodvb f9ef285056 prevent memleak
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18473 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-13 09:08:28 +00:00
nicodvb 72d7809458 unconditionally stop allocating memory for dvb_channel_t after 1 MB: it's unreasonably big
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18472 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-13 09:01:18 +00:00
rfelker 2539dc0417 accidentally committed this overflow fix with the declaration fix before.
messed up indention corrected at oded's request. :)
10^100l to me too..


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18469 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-13 06:12:25 +00:00
rfelker 7d44793978 posix compliance, dont use ancient legacy name
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18467 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-13 05:51:35 +00:00
rfelker e70c326727 10^100l c++ declarations
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18466 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-13 05:48:16 +00:00
nicodvb daa31ef05c allocate correct extradata size
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18465 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-12 22:33:42 +00:00
nicodvb e631410ee7 raised max extradata size and refuse to store more than the limit
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18463 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-12 22:21:29 +00:00
nicodvb e32c4c5712 don't allocate (and demux_push() immediately) demux_packet()s > MAX_PACK_SIZE; releasing immediately audio packets (before the pes is complete) doesn't make any sense and deteriorates interleaving
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18462 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-12 21:34:06 +00:00
nicodvb dd9d768293 search ac3 in dvd substream only if pes_aligned flag is set in the pes headers, otherwise false positives are likely to occur
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18461 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-12 20:26:05 +00:00
rtognimp 5e86603495 Fix potential integer overflows in memory allocation. Patch by Reimar and me, SIZE_MAX by Rich
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18445 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-11 18:50:46 +00:00
nicodvb 5d2679c504 unbind demux_ogg from ad_libvorbis; this permits to use -ac ffvorbis without crashes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18431 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-10 22:54:24 +00:00
nicodvb 7c516063da moved code to set aspect ratio for mpeg12 away from video.c and into decoder files; A/R changes work correctly with -vc mpeg12
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18429 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-10 22:03:18 +00:00
diego bc30e8e673 Unconditionally compile the Matroska demuxer.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18405 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-08 21:41:15 +00:00
nicodvb 56286b38d4 COSMETICS: moved code to parse mpeg1/2 A/R to mpeg_hdr.c
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18399 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-07 16:05:38 +00:00
diego c3ec96fb71 support for vfps OGM files
patch by Elphel Inc. (blessed by Roberto)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18395 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-06 07:31:49 +00:00
pacman a2783c69ba Fix calculation of stream sizes when they are too big for a 32-bit variable
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18394 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-06 06:23:23 +00:00
nicodvb 78577530ca fixed %d->PRIu64 in read_mpeg_timestamp()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18383 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-03 18:18:25 +00:00
nicodvb 8622d18bde stream_read_word() returns _unsigned_ int
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18382 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-03 18:12:38 +00:00
nicodvb c5777d7f53 in read_mpeg_timestamp() cast int expression to uint64_t before shifting to avoid truncation of bits and to prevent propagation of bit 1 as sign bit in pts
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18381 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-03 17:55:02 +00:00
rfelker 5878ff9f5a 100000l to the fools who don't know C
These were all found while auditing for malloc(A*B) type bugs.
Removing them makes it easier to find real incorrect usage and makes
the code more readable.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18367 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-01 02:04:09 +00:00
uau c843190441 Change common pts variables from floats to doubles. Individual demuxers
should be changed later.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18310 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-27 11:13:21 +00:00
diego 154fff61c9 Increase HEADER_SEARCH_SIZE, fixes high-bitrate streams from demoscene.tv.
noticed by Soeren Sonnenburg, mplayer-ml -- at -- nn7 -- dot -- de


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18252 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-24 15:12:06 +00:00
nicodvb 2bea0ef1dd removed more unused stuff
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18250 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-24 14:23:03 +00:00
nicodvb ac1506c8b3 when muxing mpeg audio streams analyze the first 32 KB of data to obtain the most likely correct layer, otherwise every misdetection during parse_audio() will lead to wrong timestamps and loss of synchrony
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18249 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-24 14:04:10 +00:00
rtognimp 6c4d9bfe51 4 - Implement a better way to calculate current audio pts and use it for
audio decoded with ad_libvorbis, ad_ffmpeg and ad_faad.

Patch by Uoti Urpala


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18243 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-24 10:58:40 +00:00
rtognimp 4b45ec30e4 3 - Move a definition of MP_NOPTS_VALUE from muxer.h to demuxer.h to
make it available in more files (needed for next patch).

Patch by Uoti Urpala


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18242 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-24 10:36:29 +00:00
nicodvb 538ae3dd8c simplified parse_audio()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18239 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-24 09:48:57 +00:00
reynaldo 3a406e94d7 Get ride of the several if(identify) messy lines and rearangment of some of the output, both patches by Kiriuja mplayer-patches AT en-directo_net, his changes are barely unrelated, nevertheless Im commiting them thogeter just for the sake of my mental healt, I had both patches already applied on my local three
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18238 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-24 07:20:34 +00:00
mosu 558f53de4b Do not give bogus timestamps for laced packets with no default duration. Patch by Uoti Urpala ( uoti ! urpala () pp1 ! inet ! fi ).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18237 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-24 06:28:45 +00:00
gpoirier 152d7ed02c resource leak fix.
detected by
Covertity's checker:
CID: 154
Checker: RESOURCE_LEAK
Description: Returned without freeing storage "cddb_info"


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18226 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-23 15:14:03 +00:00
diego 469c91859a Rename some forgotten #ifdef STREAMING_LIVE_DOT_COM to STREAMING_LIVE555.
patch by Lyakhovets Andrey, lyakhovets <<@>> rovercomputers <<.>> ru


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18220 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-23 12:29:10 +00:00
rtognimp c96851a3f0 Partially revert 1.140, restoring the old behaviour for all codecs
except for twos and sowt.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18219 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-23 11:38:06 +00:00
nicodvb e48466f86c removed more unused code and struct members
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18201 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-22 18:15:23 +00:00
nicodvb d78862db6a removed unused variables
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18200 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-22 18:02:19 +00:00
nicodvb bf75c942fc moved inline at beginning of declaration
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18198 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-22 17:55:39 +00:00
nicodvb 1733f0847a finally replaced the old interleaving with the new one that respects buffering and [pd]ts<->scr constraints; don't check spriv->framebuf_used in find_best_stream()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18197 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-22 17:47:53 +00:00
nicodvb 168e6e1daf introduced new functions to handle pack writing and interleaving strategy (will soon replace current ones)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18193 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-22 15:41:16 +00:00
nicodvb 37dae9ebcb fixed muxrates for xvcd and xsvcd
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18188 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-22 13:31:05 +00:00
nicodvb 6ba9d6ce20 audio init code was previously moved to fix_parameters() so removed from write_chunk()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18187 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-22 13:25:46 +00:00
nicodvb 2c06ca54a2 introduced structures and code to keep track of decoder's buffers sizes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18184 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-22 13:18:32 +00:00
nicodvb f86a32a270 new code to simplify assignment of timestamps; removed temp_ref from mpeg_frame_t and modified add_frame() accordingly; removed no more used drop_delayed_audio() and save_delayed_audio()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18182 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-22 13:05:01 +00:00
reynaldo c03b175452 Part3 of Otvos Attila's oattila AT chello-hu mp_msg changes, with lots of modifications as usual
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18177 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-22 05:12:10 +00:00
albeu 4d418c336f Implement getting colors. The mapping between MPlayer's gamma range
(-100/100) and v4l's range (0-65535) had to be changed a bit to avoid
rounding errors.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18174 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-21 12:47:37 +00:00
albeu f865d5a17e Implement tv_get_color_options() and make tv_set_color_options() return
mainfull values.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18173 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-21 12:45:18 +00:00
nicodvb 26b3c3f9ca removed useless (and broken as hell) buffering code from muxer1; buffering constraints will be fully respected when one of the forthcoming patches is applied
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18167 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-20 21:40:03 +00:00
nicodvb 280b8e3875 removed skip_padding (never used and totally useless)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18166 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-20 20:53:48 +00:00
nicodvb a160c8687f added support for DX50 and dx50 4CCs
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18165 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-20 20:48:55 +00:00
nicodvb aa0de16882 fixed wrong operator precedence in parse_mpeg4_video()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18164 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-20 20:44:43 +00:00
nicodvb 471dc6e589 simplified code to patch the video framerate (removed silly comparisons)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18163 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-20 20:38:09 +00:00
nicodvb 1cbc74c755 changed timebase from 1024 to 300 (no rounding errors with any of the allowed framerates); write scr_extension accordingly. This is the first of a long series of patches to rewrite the muxer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18162 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-20 20:32:36 +00:00
diego 4016beda76 Make the RTP demuxer work with libdvdread 0.9.5.
ifo_types.h needs the macros UINT8_MAX UINT16_MAX and INT32_MAX, in
stdint.h, which are not defined when the language is C++ unless
__STDC_LIMIT_MACROS is defined.
patch by Emanuele Giaquinta, emanuele <<.>> giaquinta <<@>> gmail <<.>> com


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18138 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-18 14:41:41 +00:00
gpoirier 1cfdfe73be fixes decoding demoscene.tv nsv at http://213.186.36.129:8000
Fix suggested by Reimar, patch by RC.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18129 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-17 13:47:57 +00:00
reimar 1e390288ed Use ULL for > 32 bits constant.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18118 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-16 13:45:21 +00:00
reimar 79a05843ee remove completely pointless != NULL check
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18116 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-16 13:25:14 +00:00
reimar 97efe20cd1 always cast stream IDs to unsigned before comparing to MAX_STREAMS.
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
2006-04-15 21:09:29 +00:00
reimar 79e10e452c 10l, keyframes must have tag 0x10, not 1.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18097 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-14 21:08:25 +00:00
reimar d17ac2d7bf missing free in case sdpplin_parse_stream returns invalid stream.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18096 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-14 14:10:04 +00:00
reimar 5c51b13785 free memory on error in http_add_basic_authentication
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18095 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-14 13:37:38 +00:00
reimar 3a1d78bc7a remove vts_no parameter from mp_get_titleset_length - it is not only useless,
it also breaks STREAM_CTRL_GET_TIME_LENGTH.
Patch by kiriuja {mplayer-patches at en-directo net}


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18092 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-14 13:03:05 +00:00
reimar 27ea821577 missing ifoClose and return 1. Patch by kiriuja (mplayer-patches at en-directo net)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18079 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-12 11:19:49 +00:00
nicodvb e6ab7db3e4 timestamps are 33 bits long, so they don't fit in an unsigned int; 10l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18078 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-11 20:05:24 +00:00
reimar 827ccaa941 try to detect flac bitrate early on to avoid division by zero problems.
Should also help with mencoder and -oac copy


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18076 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-11 10:46:52 +00:00
reimar b72ebc6fb8 check wav header length against upper limit, should protect against
some misdetections (esp. with text files).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18075 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-11 10:43:20 +00:00
reimar 5f65c05e35 make failures during e.g. setting the TV norm non-fatal.
Makes some (crappy *g*) USB cameras work with MPlayer.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18074 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-11 10:19:53 +00:00
reimar aaf067719b make sure the check for valid timestamps does not accidentially search through
several hundered MB (e.g. happens under MinGW with certain DVDs due to movi_end
overflowing).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18073 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-10 16:18:17 +00:00
reimar 3e489b2da7 do not print the title length from a non-matching titleset.
Fixes ID_DVD_TITLE_.._LENGTH appearing multiple times, and only once != 0.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18072 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-10 16:16:33 +00:00
reimar ed8211b89c avoid cache fill status overflow with caches > ca. 20 MB
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18068 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-09 18:16:29 +00:00
iive 37b31c74a8 make sure the indx chunk is big enough to hold the basic structure.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18053 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-06 21:49:12 +00:00
reimar 9641a1433c use calloc instead of malloc - simplifies code and fixes overflow problems.
Path by Bjorn Sandell (biorn at chalmers se)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18052 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-06 20:56:35 +00:00
michael 9ec42a7e3f zero sized frames are not keyframes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18051 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-06 20:36:39 +00:00
iive 64159b23f8 Limit the number of entires to the amount that does fit into the chunk.
the function need rewrite as it assumes quite many things that are not guaranteed by the specifications.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18050 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-06 20:04:02 +00:00
nicodvb ecdfed5122 workaround to prevent segfault: when using -ve lavc with b-frames write_chunk(1st video frame) gets called with len=-1UL; -1ULl to whomever calls me that way
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18045 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-05 20:51:35 +00:00
nicodvb 7d8d007650 segfault fix: assign param->apid (that is the audio id found) when inexistent audio language is specified; patch by Erik Auerswald auerswal a unix-ag d uni-kl d de
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18044 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-05 18:50:24 +00:00
rtognimp ca10cc19a5 Fix RealAudio codecs (add descrambling)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18037 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-03 19:41:17 +00:00
rfelker 20674f6d49 10l: huge amount of constant crap in data segment
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18033 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-03 06:38:55 +00:00
diego c35708cbf1 Remove mpdvdkit1 cruft from the build system.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18022 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-02 13:31:03 +00:00
rtognimp 7cd95a4b4b Don't use free()d pointer CID 260
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18012 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-01 23:50:30 +00:00
iive 9b4c7840b9 fix descrambling of asf file,
where signed buffer could cause erroneous values to be filled in descrable variables,
add misssing check for one of these variables
and restore sign of these variables as insurance that these checks will work even in such case.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18002 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-30 23:06:18 +00:00
albeu 22e18ebe85 Move global vars used for header parsing, etc to dewux->priv as it should
be. Also cleanup a bit signedness.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17993 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-29 23:25:09 +00:00
albeu 42a11b39c9 100L to who wrote this. Also fix broken headers while at it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17991 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-29 19:31:31 +00:00
rtognimp 9c2deb1452 Fix passing qdm2 extradata to lavc decoder
It was broken in rev 1.142, that code does not behave the same as the
old one in some cases


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17983 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-27 21:37:18 +00:00
diego a33158d60d Convert printfs in aviprint.c to mp_msg and give the information printing
functions in this file a verbosity_level parameter.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17978 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-27 17:25:41 +00:00
diego 55859c930c Remove superfluous extern variable declaration.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17971 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-27 07:31:08 +00:00
rtognimp c59ca7db22 Fix a/v desync for real some files
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17961 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-26 14:10:52 +00:00
nicodvb 0b0fac0e9c H264: when fixed_fps is set the framerate is expressed in fields per second, so it must be halved
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17953 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-25 23:07:28 +00:00
diego 3e56c5bb6b cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
to ease patching in the future.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17944 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-25 10:38:37 +00:00
diego eebf08b978 Convert all if(verbose>X) to mp_msg_test calls.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17933 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-24 08:12:03 +00:00