Commit Graph

808 Commits

Author SHA1 Message Date
reimar d1e7b4dc6f Fix possible crashes with invalid SDPs that result in stream descriptions
not being initialized.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29626 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-02 10:55:36 +00:00
reimar ac11b35a6a Fix several more rtsp-related memleaks.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29625 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-02 10:44:26 +00:00
reimar 70a247b26d Fix asmrp_dispose to also free the buffer.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29624 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-02 10:37:32 +00:00
reimar 2726fe03ec Use calloc to ensure rmff_new_mdpr returns fully initialized data.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29623 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-02 10:35:06 +00:00
reimar 3351bc2d18 Move variable declaration to where it is used.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29622 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-02 10:28:08 +00:00
reimar 079a64ae8d Make sure we do not strdup(NULL), avoids a crash with non-real streams.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29621 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-02 10:22:08 +00:00
reimar 5c4a06530d Fix several memleaks in real_setup_and_get_header
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29620 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-02 10:20:45 +00:00
reimar 24e788fc4c Change real_setup_and_get_header to use goto a single exit path to simplify
proper freeing of allocated data.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29619 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-02 10:10:42 +00:00
cehoyos 6a101a97f9 Fix file information. Patch by Francesco Lavra, francescolavra interfree it
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29521 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-15 23:41:35 +00:00
cehoyos 4112165879 Add missing major contributors to copyright statement.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29520 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-15 23:33:56 +00:00
cehoyos 19199c79ae Fix another typo. Patch by Francesco Lavra, francescolavra interfree it
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29470 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-02 15:39:08 +00:00
cehoyos c8bbeea3b2 Add standard GPL license header. Patch by Francesco Lavra, francescolavra interfree it
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29468 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-02 14:50:24 +00:00
cehoyos 35b86231c2 Fix more typos. Patch by Francesco Lavra, francescolavra interfree it
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29467 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-02 14:44:12 +00:00
cehoyos 463ac707c1 Remove unused include's. Patch by Francesco Lavra, francescolavra interfree it
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29466 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-02 14:41:15 +00:00
cehoyos 7fd95348fe Fix typos. Patch by Francesco Lavra, francescolavra interfree it
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29465 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-02 14:38:18 +00:00
uau 45b7b9374b stream/realrtsp/real.c: Fix another integer overflow
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29455 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-28 16:25:03 +00:00
uau 4dc235eb7c stream/realrtsp/real.c: Fix integer overflow
Pointed-out-by: tixxDZ <tixxdz at gmail dot com> - DZCORE Labs, Algeria


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29447 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-27 16:53:48 +00:00
diego e5751ced4f Replace WORDS_BIGENDIAN by HAVE_BIGENDIAN in all internal code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29443 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-26 19:53:00 +00:00
reimar 437efdc855 Replace incorrect use of strncpy by av_strlcpy.
Only a real issue if inet_ntoa can actually return a string of more than 255 bytes.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29393 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-26 13:54:22 +00:00
diego bf67bb10a1 Files should be opened in binary mode on OS/2.
patch by KO Myung-Hun, komh chollian net


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29346 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-03 14:06:10 +00:00
reimar c783e58e91 Using nl_langinfo in the asf mmst implementation makes no sense since
MPlayer does not use setlocale.
Just default to UTF-8 as input charset until there is a better solution.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29333 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-31 13:09:48 +00:00
diego 6e9cbdc104 whitespace cosmetics: Remove all trailing whitespace.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-13 02:58:57 +00:00
diego 4567425051 Reemit the ID_AID_x_LANG for the track. This allows the identification of the
audio track by language code (en or es) rather than by ID (128 or 129).
patch by Kevin DeKorte, kdekorte gmail com


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29170 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-11 13:51:02 +00:00
reimar b6225fc8ae Make tvi_v4l2 print -1 as "Current input" if the ioctl to read it failed.
Previously it printed (number of inputs + 1) which is needlessly confusing.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29161 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-10 10:13:41 +00:00
reimar 486ce51625 Add a -indentify message that indicates if the current DVDNAV title is
a menu or a video.
Patch by Kevin DeKorte [kdekorte gmail com], approved by Nico.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29156 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-09 14:23:09 +00:00
diego a38ca08ca0 Remove unused variable along with the related warning.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29122 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-01 16:27:03 +00:00
reimar f5d01796a8 100l, revert r29082, I missed that the vts comparison should be case-insensitive.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29084 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-28 16:09:56 +00:00
reimar 8d376de96f Reindent
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29083 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-28 15:54:08 +00:00
reimar df1af70475 Simplify extracting title number from ifo name
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29082 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-28 15:53:32 +00:00
reimar 8198495234 Simplify detection of .ifo extension.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29078 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-27 21:26:26 +00:00
compn 09d4f18010 change close to closesocket, unifies close streaming code
patch by Francesco Cosoleto , cosoleto gmail com


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29066 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-26 13:35:12 +00:00
reimar 127480e660 Add support for mmsh:// as alias for mmshttp://
Patch by Francesco Cosoleto [cosoleto gmail com]


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29064 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-26 11:00:04 +00:00
reimar b397b28b31 Add TVI_CONTROL_VID_SET_WIDTH_HEIGHT to set width and height together for v4l2,
otherwise some drivers will always stay stuck in the lowest resolution.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28975 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-16 17:12:29 +00:00
reimar 37c6f0d36c 100l fix calculation of dropped frames, number of frames is time * fps, not time / fps.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28962 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-15 16:12:05 +00:00
ben 540847db7b Ensure the string we're trying to compare is actually not NULL.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28920 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-09 20:31:03 +00:00
ben 571c0fb8a9 The first valid index is total count - 1 (usually 0)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28919 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-09 20:30:24 +00:00
reimar 8605d7090e Use memset to make sure all parts of struct sockaddr_in are always initialized.
Problem reported by [kmkaplan+mplayer-dev-eng (at) kim kim-minh com]


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28732 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-25 12:51:20 +00:00
diego ee50536b74 Accept DVB API 5, patch by Steven Brudenell, steven.brudenell gmail com.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28702 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-22 14:12:33 +00:00
diego 1b915e419e Replace double semicolon by single semicolon.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28611 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-16 02:00:29 +00:00
diego 7e1662839a Restructure network tests: Always check for both inet_aton and inet_pton.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28439 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-01 14:38:28 +00:00
diego 0f65d3be9d Convert HAVE_WINSOCK2_H into a 0/1 definition.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28437 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-01 13:42:27 +00:00
diego 3b222d68b0 HAVE_ATON --> HAVE_INET_ATON to match FFmpeg and give it a 0/1 value.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28435 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-01 13:33:35 +00:00
diego be5f5c7046 Convert HAVE_CLOSESOCKET and HAVE_SOCKLEN_T into 0/1 definitions.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28434 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-01 13:16:46 +00:00
reimar 84fbeecf72 Fix a NULL-check that used && instead of || and thus could not avoid crashes.
Patch by Luis Felipe Strano Moraes (luis strano   gmail com).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28354 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-25 18:23:05 +00:00
reimar 4af9bf7e02 Switch internal dvdread to libdvdread SVN external.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28280 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-08 19:28:28 +00:00
diego 824abb5a65 Add missing 'void' keyword to parameterless function declarations.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28267 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-05 14:48:03 +00:00
reimar 82d097d04b Fix DVD seek_to_chapter: the title number must be converted to a per-VTS
title number first. Also add a few out-of-bounds checks just in case.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28226 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-01 11:46:34 +00:00
reimar a2c2268cdf Work around a dvdread bug where DVDReadBlocks would return values < 0 on read error,
causing hangs e.g. when seeking to the very last chapter (which would read beyond the
size of the DVD).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28216 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-31 14:21:50 +00:00
diego 47044eb841 Avoid u_ BSD type names.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28197 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-27 12:03:51 +00:00
diego 39090878e5 Replace informal GPL notes by standard GPL header.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28140 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-13 12:13:48 +00:00