Commit Graph

64 Commits

Author SHA1 Message Date
ulion 5d2de57e5b Fix vobsub_seek use same reseek method as vobsub_get_packet did.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25819 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-20 15:43:10 +00:00
ulion 969bc9cb89 Fix code to prevent from accessing queue->packets[-1].pts that causes a crash.
Found and patched by Reimar.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25774 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-17 02:18:49 +00:00
ulion 75e3df67ae Fix comment from unrarlib to unrar_exec
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25471 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-20 10:41:16 +00:00
ulion a4c16de071 Remove redundant code since unrarlib was removed.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25470 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-20 10:40:30 +00:00
diego f9455f34d0 Remove internal unrarlib copy, the new unrarexec code is a strict superset.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25468 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-20 10:10:26 +00:00
ulion 4a901e4db0 Vobsub support tridx setting in .idx file.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25460 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-19 08:35:40 +00:00
ulion aaf4c414a6 Use calloc instead of malloc when allocate vobsub_t.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25459 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-19 04:45:45 +00:00
ulion df0f80508e Support using unrar executable to access rar-compressed vobsub files.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25389 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-14 08:16:39 +00:00
ulion 4c6a12e619 Fix spudec to display current vobsub immediately after a seek.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25350 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-11 10:12:58 +00:00
ulion 6e9b19642a Convert vobsub custom colors from rgb to yuv using a common function.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25326 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-09 06:58:57 +00:00
ulion 3942e8143b Remove useless include added in last commit by mistake.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25322 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-08 14:19:12 +00:00
ulion 151e8cceec Move vobsub palette->yuv convert code into a common function.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25320 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-08 12:15:03 +00:00
ulion fad92e57fa Restore y of palette into the same value range as it was in the .ifo file.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25317 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-08 02:38:02 +00:00
ulion 0f04ca9adf Skip empty vobsub streams when selecting subtitles.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25279 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-03 04:08:36 +00:00
ulion c9dee90d0b Fix custom palette format from rgb to yuv, we use it as yuv in the spudec.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25277 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-03 03:20:11 +00:00
ulion 09270628da Even when vobsub is forced, .ifo file is still not necessary,
so change the log level from error to warning.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25197 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-29 03:35:50 +00:00
ulion 5363464d0a Check boundary for queue's current_index.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25147 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-23 13:17:36 +00:00
reimar 8e7945155c Use libavutil's av_clip* instead of unreadable MIN/MAX chaos.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22395 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-01 12:54:08 +00:00
reimar 0ba390c7a3 Open vobsub output files in binary mode, otherwise the OS might
do all kinds of evil mangling to them (fixes bug #668).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21460 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-03 11:23:04 +00:00
reimar e0892295b5 Useless initialization, they will be always set for result != 0
and for result == 0 they make no sense


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20102 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-08 09:05:27 +00:00
reynaldo a814f0ebcd removes unused parentheses lefted behind in the r19075 sizeof(char) cleanups, noticed by dalias
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19079 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-14 06:26:31 +00:00
reynaldo 26f0e5e4a1 more sizeof(char) fun
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19075 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-13 22:11:47 +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
faust3 06f0cd6893 avoid conflicting types error on cygwin
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17528 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-02 12:01:40 +00:00
reimar f8b41e9052 fix memleak in idx parser. patch by elupus [elupus {at] ecce <dot) se]
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14238 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-12-25 12:08:33 +00:00
mosu 50a86fcc34 Output more information about vids, aids, sids, alangs and slangs with -identify. Patch by kiriuja <mplayer-patches@en-directo.net>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14047 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-11-25 22:24:00 +00:00
luran e3f069bf7a fix the crash when seek with 'unknown' subtitles, hopefully...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11710 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-01-01 11:01:09 +00:00
nexus 9d3d9aa34a fix typo
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11696 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-12-28 00:43:21 +00:00
alex c7f47f1837 10l found by atmos
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11595 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-12-08 21:53:54 +00:00
alex 0955d23934 vobsub seeking support by Lu Ran
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11590 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-12-08 18:35:39 +00:00
mosu 7931d804f1 Improved searching for VobSubs inside RAR archives even if the names do not match the movie name. Do not display VobSubs whose timecodes are < 0 which would make all VobSubs appear from the start on upon seeking. Patches by "Reder, Uwe" <Uwe.Reder@3SOFT.de>.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11310 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-10-28 22:36:56 +00:00
attila 943904865f Forced subtitles patch by Arne Driescher <driescher@mpi-magdeburg.mpg.de>
For a given subtitle language you can now chose to display
  only the forced subtitles. Defaut is set to "show all subtitles"
  so that current mplayer behaviour is not changed.

For DVD:
  Use -forced_subs_only additionally to e.g. -slang en
  if you are only interested in the forced subtitles.

For VobSub:
  The idx file is now parsed for the "forced subs: ON/OFF" tag
   and used according to its settings.

Key:
  You can toggle the display of forced subtitles by pressing
   "F"  (upper case letter).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10918 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-09-21 14:21:43 +00:00
faust3 c14bc5bbc0 binary flag is rquired for win32
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10894 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-09-20 19:41:24 +00:00
alex 078776801b 10l, lot of missing new-lines. In case of an error, all the messages will be screwed up
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10759 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-08-31 22:36:27 +00:00
faust3 e0c59923ec remove ssize_t mess
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10211 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-05-30 17:38:51 +00:00
faust3 a66cc22948 MINGW32 port
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9773 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-03-31 17:32:46 +00:00
kmkaplan 727d41286f supdec.h needs libvo/video_out.h. vobsub.c does not.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9512 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-02-28 19:21:45 +00:00
kmkaplan a543af3a40 warning fix.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9510 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-02-28 08:17:54 +00:00
arpi c11bd13ed6 compiler warning fixes by Dominik Mierzejewski <dominik@rangers.eu.org>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8734 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-01-03 12:26:17 +00:00
arpi 8457972ae4 Here is the patch to make vobsub subtitle use -slang option, I have not made a
new option for vobsub. Now mplayer will use the setting of slang first, and
then langidx from .idx file, if all failed, no sub.
patch by hephooey@fastmail.fm


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8536 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-12-23 01:54:58 +00:00
arpi 28538fd920 When you called mplayer with the absolute path to the video and the VOBSUB
subtitle is in a rar archive, mplayer tried to find the files in the archive
with the absolute path. The patch fixes the problem by getting rid of the
full path just trying the filename.
patch by Uwe.Reder@3SOFT.de


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8204 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-11-16 03:04:33 +00:00
arpi 39fe4d0cd3 verbose can be negative
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8028 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-11-01 17:46:45 +00:00
arpi 020da6d76e The first language ripped is set as the default language
by writing the langidx tag with the index of this language.
patch by Arne Driescher <driescher@mpi-magdeburg.mpg.de>
(accepted by Kim Minh Kaplan)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8015 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-11-01 00:01:53 +00:00
kmkaplan 43ef114abe Mplayer can switch between subtitles of different languages during
playing by press 'j', based on a patch by <hephooey@fastmail.fm>.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7781 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-10-17 15:44:41 +00:00
kmkaplan 1637590528 Automatic unrar of vobsub. Does not work with rar v3
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7447 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-09-20 01:26:39 +00:00
kmkaplan 14b3eae4b1 Fix support for negative "delay:" directive in .idx file.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7418 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-09-16 15:31:34 +00:00
kmkaplan 574cd16de4 Use RGB for palette from .IDX file
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6832 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-07-28 16:37:05 +00:00
kmkaplan 599cf07dc3 New function vobsub_get_next_packet for subrip.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6830 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-07-28 16:28:30 +00:00
atmos4 93c6b5610a Make vobsub palette generation compatible with windows vobsub.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6828 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-07-28 12:01:32 +00:00
kmkaplan b58bc9dd26 Remove depency on libmpdemux streams, use ANSI IO instead.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6774 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-07-23 20:19:42 +00:00