Commit Graph

35 Commits

Author SHA1 Message Date
diego 49e27d5849 printf --> mp_msg
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19080 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-14 07:40:36 +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
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
rathann 2601de4120 massive attack: mp_msg printf format fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17367 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-12 20:04:36 +00:00
rathann f39b891ba0 convert some printfs to mp_msg
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17356 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-10 11:09:03 +00:00
nicodvb f774739df9 include the right avcodec.h, consistently with the rest of mplayer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17344 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-08 14:03:42 +00:00
henry c0e54fd248 malloc padding to avoid access beyond allocated memory
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
2005-12-19 19:38:28 +00:00
rtognimp cd68e1618b Demuxer modularization
Demuxer selection by name with -demuxer command (bakward compatible)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16176 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-05 19:57:47 +00:00
rfelker 7bd996caf4 make stupid gcc versions happy
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12086 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-03-31 05:40:31 +00:00
rtognimp e96035db2e 100l Fix audio decoding and random sig11
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11651 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-12-15 22:39:32 +00:00
alex b43ef64f69 fixed 2 10l-s (bug found in the spring cleanup patch by Raindel Shachar
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9956 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-04-21 11:18:54 +00:00
michael 01c201dbe8 warning patch by (Dominik Mierzejewski <dominik at rangers dot eu dot org>)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8255 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-11-23 10:58:14 +00:00
arpi d483a015a2 tons of warning fixes, also some 10l bugfixes, including Dominik's PVA bug
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7473 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-09-22 02:33:28 +00:00
arpi 46914c1498 some more output cosmetics, especially for vivo and mov demuxers
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6140 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-05-20 03:51:58 +00:00
pl 667973e101 warning (proper) fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4408 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-01-29 12:11:52 +00:00
pl 0d08e5f435 warning fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3734 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-12-25 16:38:07 +00:00
pl e0c43586ae x = malloc(strlen(s) + c) ... strcpy(x, s)
replaced by
x = strdup(s)

Note: sometimes c was 0 and that was a bug
Note2: code still has to be added to check the returned value of these funcs


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3613 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-12-19 13:03:22 +00:00
arpi f0a8c2a8a3 vivo A-V sync fixed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3527 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-12-16 14:51:04 +00:00
alex 149f8a1265 -vivo version option added
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3504 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-12-15 16:49:45 +00:00
alex 1fc41f6a2b added -vivo subconfig
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3503 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-12-15 16:44:54 +00:00
alex b56bd49b6e hacked audio support to work with acm
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3472 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-12-12 18:24:21 +00:00
alex b1a8f43317 fixed Waveformatheader emu and added vivo1/2 audio detection
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3440 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-12-10 17:48:09 +00:00
alex a1216fc770 added support for packet 0x82 (from vivodump.c by arpi)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3246 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-12-01 16:32:07 +00:00
alex 2ea47dbd6f changed to generate fourcc's like: viv<version> -> viv1,viv2
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3114 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-25 16:33:39 +00:00
alex 437be981be wrote a very annoying bug
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3070 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-22 15:10:38 +00:00
alex 2b0861fc84 added support for demux_info
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3069 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-22 15:08:39 +00:00
alex 9fc1c333f7 some minor fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2929 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-16 19:45:10 +00:00
pl ff534f0810 small fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2810 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-11 01:35:43 +00:00
alex 663c276f00 disabled vivo2 scaling (decodes some vivo2 files)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2806 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-11 00:31:34 +00:00
alex 22cecc831d checking for EOF
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2793 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-10 12:36:03 +00:00
alex 70b29b823d freeing up space and some debug
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2789 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-09 22:17:35 +00:00
alex ce1c6b954d vivo_check_file uses also new textparser
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2786 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-09 16:37:05 +00:00
alex 785d9496a9 added text block parser
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2785 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-09 16:32:46 +00:00
arpi d1b9720467 vivo 2.0 compatibility
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2696 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-04 19:39:08 +00:00
arpi 27b3895659 vivo demuxer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2688 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-04 16:57:09 +00:00