summaryrefslogtreecommitdiffstats
path: root/sub_cc.c
Commit message (Collapse)AuthorAgeFilesLines
* cosmetics: make some arguments const, "unsigned char"->uint8_treimar2010-12-161-7/+7
| | | | | | | | | | | | | | | | | | Mark input-only buffers as const. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32652 b3059339-0415-0410-9bf9-f77b7e298cf2 Use uint8_t type instead of unsigned char. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32653 b3059339-0415-0410-9bf9-f77b7e298cf2 Mark input buffer that is never modified as const. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32654 b3059339-0415-0410-9bf9-f77b7e298cf2 Mark input-only buffer as const. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32655 b3059339-0415-0410-9bf9-f77b7e298cf2
* sub_cc: modify parsing to fix problem with one samplereimar2010-11-141-6/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32609 b3059339-0415-0410-9bf9-f77b7e298cf2
* sub_cc: Allow selecting the Close Captioning channelreimar2010-11-141-10/+16
| | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32607 b3059339-0415-0410-9bf9-f77b7e298cf2 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32608 b3059339-0415-0410-9bf9-f77b7e298cf2
* sub_cc.c: minor cleanupreimar2010-11-141-6/+5
| | | | | | | | | | Avoid unnecessary (). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32599 b3059339-0415-0410-9bf9-f77b7e298cf2 Use calloc instead of malloc+memset. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32600 b3059339-0415-0410-9bf9-f77b7e298cf2
* cleanup: don't check for NULL before free()diego2010-11-081-2/+5
| | | | | | patch by Clément Bœsch, ubitux gmail com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32598 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move code to avoid forward declarations in top-level .c filesdiego2010-11-021-8/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32421 b3059339-0415-0410-9bf9-f77b7e298cf2
* sub_cc: remote pointless assignmentsreimar2010-11-021-6/+1
| | | | | | | Remove pointless assignments that would assign the value it already was initialized to. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31710 b3059339-0415-0410-9bf9-f77b7e298cf2
* Merge svn changes up to r30475Uoti Urpala2010-03-091-3/+18
|\
| * Add license header to all top-level files missing them.diego2010-01-301-3/+18
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30471 b3059339-0415-0410-9bf9-f77b7e298cf2
| * whitespace cosmetics: Remove all trailing whitespace.diego2009-05-131-4/+4
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Remove trailing whitespace from most filesUoti Urpala2009-07-071-5/+4
|/
* Some reformating to avoid two too long linesreynaldo2009-05-121-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29296 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of some more trailing whitespacereynaldo2009-05-121-21/+21
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29295 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Remove file names from file header, it only causes trouble.diego2009-03-151-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28959 b3059339-0415-0410-9bf9-f77b7e298cf2
* typo fix: inited --> initializeddiego2008-02-141-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25994 b3059339-0415-0410-9bf9-f77b7e298cf2
* Basic support for Closed Captioning Roll-up mode.voroshil2007-10-271-0/+45
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24858 b3059339-0415-0410-9bf9-f77b7e298cf2
* Sanity-check number of lines in CC subtitlereimar2006-11-251-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21253 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cleanup for uselessly complicated closed-caption subtitle handlingreimar2006-11-251-10/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21252 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a sanity check to unsafe-looking code.uau2006-11-251-0/+2
| | | | | | | | Does the memcpy to internal buffer here have any purpose besides enabling more potential buffer overflows? git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21250 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change some printf calls to fprintf.diego2006-03-271-1/+1
| | | | | | | based on a patch by Attila Ötvös, oattila,,@,,chello,,.,,hu git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17972 b3059339-0415-0410-9bf9-f77b7e298cf2
* include config.h before includes that need itiive2006-02-161-0/+1
| | | | | | | based on patch by Alan Curry <pacman at theworld com> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17631 b3059339-0415-0410-9bf9-f77b7e298cf2
* Patch by Stefan Huehner / stefan % huehner ! org \rathann2006-02-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | patch replaces '()' for the correct '(void)' in function declarations/prototypes which have no parameters. The '()' syntax tell thats there is a variable list of arguments, so that the compiler cannot check this. The extra CFLAG '-Wstrict-declarations' shows those cases. Comments about a similar patch applied to ffmpeg: That in C++ these mean the same, but in ANSI C the semantics are different; function() is an (obsolete) K&R C style forward declaration, it basically means that the function can have any number and any types of parameters, effectively completely preventing the compiler from doing any sort of type checking. -- Erik Slagter Defining functions with unspecified arguments is allowed but bad. With arguments unspecified the compiler can't report an error/warning if the function is called with incorrect arguments. -- Måns Rullgård git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17567 b3059339-0415-0410-9bf9-f77b7e298cf2
* *HUGE* set of compiler warning fixes, unused variables removalarpi2002-11-061-0/+1
| | | | | | | 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
* tons of warning fixes, also some 10l bugfixes, including Dominik's PVA bugarpi2002-09-221-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7473 b3059339-0415-0410-9bf9-f77b7e298cf2
* codmetics :)arpi2002-07-251-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6792 b3059339-0415-0410-9bf9-f77b7e298cf2
* DVD Closed Captioning support, patch by Matteo Giani <matgiani@ctonet.it>, ↵atmos42002-07-251-0/+292
small changes by me. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6785 b3059339-0415-0410-9bf9-f77b7e298cf2