mplayer.git
9 years agoadd missing fclose()
siretart [Sun, 9 Jan 2011 20:21:45 +0000 (20:21 +0000)]
add missing fclose()

found by cppcheck:
[avisubdump.c:199]: (error) Resource leak: f

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32776 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoadd missing fclose
siretart [Sun, 9 Jan 2011 20:03:56 +0000 (20:03 +0000)]
add missing fclose

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32775 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoFix printf format string warning
siretart [Sun, 9 Jan 2011 20:02:45 +0000 (20:02 +0000)]
Fix printf format string warning

fixes this warning:
asfinfo.c: In function 'print_video_header':
asfinfo.c:158: warning: format '%.4s' expects type 'char *', but argument 3 has type 'long int *'

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32774 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoEnable fflagarith video decoder.
cehoyos [Sun, 9 Jan 2011 18:47:46 +0000 (18:47 +0000)]
Enable fflagarith video decoder.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32773 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoupdate copyright year
compn [Sat, 8 Jan 2011 23:35:15 +0000 (23:35 +0000)]
update copyright year

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32772 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoMake load of n subtitles directories possible.
cboesch [Sat, 8 Jan 2011 10:02:45 +0000 (10:02 +0000)]
Make load of n subtitles directories possible.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32771 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoFix ao_coreaudio compilation on OS X 10.4.
diego [Fri, 7 Jan 2011 21:30:14 +0000 (21:30 +0000)]
Fix ao_coreaudio compilation on OS X 10.4.

This version is the last OS version available for certain classes of PPC Macs,
but it lacks AudioDeviceIOProcID, so it has to be emulated.
patch by Aaro Koskinen, aaro.koskinen iki fi

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32770 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoadd some notes about BE/LE colorspaces and fix a small typo
compn [Thu, 6 Jan 2011 21:05:34 +0000 (21:05 +0000)]
add some notes about BE/LE colorspaces and fix a small typo

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32769 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoRevert r32761: The codec_tag for flac should not be overwritten.
cehoyos [Thu, 6 Jan 2011 15:15:05 +0000 (15:15 +0000)]
Revert r32761: The codec_tag for flac should not be overwritten.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32768 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoFix playback of flac in mov with both demuxers.
cehoyos [Thu, 6 Jan 2011 15:13:31 +0000 (15:13 +0000)]
Fix playback of flac in mov with both demuxers.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32767 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoDon't hardcode filename length.
ranma [Thu, 6 Jan 2011 14:41:10 +0000 (14:41 +0000)]
Don't hardcode filename length.

Use limits.h to get the maximum length instead of hardcoding it.
Original patch by Sang-Uok Kum.

Signed-off-by: Tobias Diedrich <ranma@google.com>
git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32766 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoIncrease the bitrate range maximum value.
ranma [Thu, 6 Jan 2011 14:38:55 +0000 (14:38 +0000)]
Increase the bitrate range maximum value.

This about quadruples the maximum from 24Mbit to to 100Mbit.
Maybe use INT_MAX or something to not limit the user in any way?

Original patch by Krishna Gadepalli and Debargha Mukherjee.

Signed-off-by: Tobias Diedrich <ranma@google.com>
git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32765 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoFix playback of ffv1 yuv422p16.
cehoyos [Thu, 6 Jan 2011 13:21:11 +0000 (13:21 +0000)]
Fix playback of ffv1 yuv422p16.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32764 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoDo not #define _WIN32 on the command line for Cygwin.
diego [Thu, 6 Jan 2011 12:42:59 +0000 (12:42 +0000)]
Do not #define _WIN32 on the command line for Cygwin.

Newer Cygwin versions no longer do this and hopefully we should be able
to survive without this hack as well.  This change necessitates adapting
two #ifdefs in the MPlayer codebase.  It is committed untested as I do
not have access to a Cygwin system.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32763 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoAdd/remove a few standard header #includes in our libc function replacements.
diego [Thu, 6 Jan 2011 12:25:33 +0000 (12:25 +0000)]
Add/remove a few standard header #includes in our libc function replacements.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32762 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoFix flac in mov for -demuxer lavf.
cehoyos [Thu, 6 Jan 2011 12:21:48 +0000 (12:21 +0000)]
Fix flac in mov for -demuxer lavf.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32761 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoSimplify a bunch of configure checks with the statement_check function.
diego [Wed, 5 Jan 2011 16:37:45 +0000 (16:37 +0000)]
Simplify a bunch of configure checks with the statement_check function.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32760 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoDefine _XOPEN_SOURCE to 600 instead of 500 in mkstemp check, this is consistent
reimar [Wed, 5 Jan 2011 16:01:01 +0000 (16:01 +0000)]
Define _XOPEN_SOURCE to 600 instead of 500 in mkstemp check, this is consistent
to the use in libavcodec, consistent with other _XOPEN_SOURCE defines in tests
and it fixes detection on Solaris that refuses to compile system headers when
combining std=c99 with _XOPEN_SOURCE 500.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32759 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoAdd define_statement_check function and use it to simplify some checks.
diego [Wed, 5 Jan 2011 15:59:43 +0000 (15:59 +0000)]
Add define_statement_check function and use it to simplify some checks.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32758 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years ago100l, set s->muxer->muxbuf to NULL after free, it is used as argument to
reimar [Wed, 5 Jan 2011 15:45:28 +0000 (15:45 +0000)]
100l, set s->muxer->muxbuf to NULL after free, it is used as argument to
realloc so we may _never_ allow it to be an invalid value.

Original patch by Sang-Uok Kum.

Signed-off-by: Tobias Diedrich (ranma google com).
git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32757 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoAttempt to fix example configure line.
reimar [Wed, 5 Jan 2011 15:13:47 +0000 (15:13 +0000)]
Attempt to fix example configure line.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32756 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoUse getfps helper function everywhere, simplifies code and avoids a possible division...
reimar [Wed, 5 Jan 2011 15:11:16 +0000 (15:11 +0000)]
Use getfps helper function everywhere, simplifies code and avoids a possible division by 0.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32755 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoDisambiguate remarks about profiles in configuration files.
diego [Wed, 5 Jan 2011 14:55:45 +0000 (14:55 +0000)]
Disambiguate remarks about profiles in configuration files.

Also move the profiles to the bottom of the example configuration file
as the original remarks in the file suggested.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32754 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agocosmetics: Get rid of some backslashes at the end of lines.
diego [Wed, 5 Jan 2011 13:55:44 +0000 (13:55 +0000)]
cosmetics: Get rid of some backslashes at the end of lines.

This is done by either moving the logical &&/|| operators to the
preceding line or by merging the two lines together.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32753 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agocosmetics: Drop some unnecessary end-of-line backslashes after &&/||.
diego [Wed, 5 Jan 2011 13:34:12 +0000 (13:34 +0000)]
cosmetics: Drop some unnecessary end-of-line backslashes after &&/||.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32752 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoFactorize ROUND() redefinitions macro.
cboesch [Mon, 3 Jan 2011 19:39:31 +0000 (19:39 +0000)]
Factorize ROUND() redefinitions macro.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32751 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoReplace mp_path_is_absolute with mp_path_join.
cboesch [Mon, 3 Jan 2011 18:37:45 +0000 (18:37 +0000)]
Replace mp_path_is_absolute with mp_path_join.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32750 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoRevert previous wrong simplification of AltiVec vector declarations check.
diego [Sun, 2 Jan 2011 19:04:35 +0000 (19:04 +0000)]
Revert previous wrong simplification of AltiVec vector declarations check.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32749 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoReplace obsolete '--with-extralibdir' configure option by '--extra-ldflags'.
diego [Sun, 2 Jan 2011 18:52:46 +0000 (18:52 +0000)]
Replace obsolete '--with-extralibdir' configure option by '--extra-ldflags'.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32748 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoAdd sys/time.h #include to videodev.h/videodev2.h checks.
diego [Sun, 2 Jan 2011 12:21:59 +0000 (12:21 +0000)]
Add sys/time.h #include to videodev.h/videodev2.h checks.

Older kernels had broken videodev* headers that lacked the required #include.
patch by Michael Lampe, mlampe0 googlemail com

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32747 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoconfigure: Simplify *BSD ioctl_meteor.h check.
diego [Sun, 2 Jan 2011 12:10:51 +0000 (12:10 +0000)]
configure: Simplify *BSD ioctl_meteor.h check.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32746 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoDrop unnecessary Xlib.h #include from Xss screensaver extensions check.
diego [Sun, 2 Jan 2011 12:05:23 +0000 (12:05 +0000)]
Drop unnecessary Xlib.h #include from Xss screensaver extensions check.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32745 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoSimplify vector declarations and fast inttypes check with statement_check().
diego [Sun, 2 Jan 2011 11:49:48 +0000 (11:49 +0000)]
Simplify vector declarations and fast inttypes check with statement_check().

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32744 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoSet sample_fmt before trying to open an audio codec.
reimar [Sat, 1 Jan 2011 19:39:19 +0000 (19:39 +0000)]
Set sample_fmt before trying to open an audio codec.
Fixes failure to open flac encoder.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32743 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoRemove AAC/FAAD2 installation instructions.
diego [Sat, 1 Jan 2011 14:40:02 +0000 (14:40 +0000)]
Remove AAC/FAAD2 installation instructions.

There is nothing special about building and installing FAAD2, so there is
no longer a need to keep maintaining instructions for it.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32742 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoRemove forked internal libfaad2 copy.
diego [Sat, 1 Jan 2011 14:27:41 +0000 (14:27 +0000)]
Remove forked internal libfaad2 copy.

The FFmpeg AAC decoder is default now and surpasses libfaad2 in all regards,
so there is no longer a reason to keep a forked library copy.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32741 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoRemove references to some forked code that was deleted from MPlayer ages ago.
diego [Sat, 1 Jan 2011 14:06:21 +0000 (14:06 +0000)]
Remove references to some forked code that was deleted from MPlayer ages ago.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32740 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoRemove dvdnav-howto.txt, it is unnecessary and contains no information at
reimar [Fri, 31 Dec 2010 16:13:47 +0000 (16:13 +0000)]
Remove dvdnav-howto.txt, it is unnecessary and contains no information at
all that is still useful.
It actually suggests commands that seem to cause MPlayer to fail to compile.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32739 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoMake internal FFmpeg use the new API that does not pose a limit on the maximum
reimar [Fri, 31 Dec 2010 16:04:57 +0000 (16:04 +0000)]
Make internal FFmpeg use the new API that does not pose a limit on the maximum
number of streams.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32738 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agosync with en/mplayer.1 rev. 32735
jrash [Fri, 31 Dec 2010 07:21:29 +0000 (07:21 +0000)]
sync with en/mplayer.1 rev. 32735

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32737 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoDefine CONFIG_GPL in config.asm, fixes compilation with YASM.
reimar [Thu, 30 Dec 2010 12:48:03 +0000 (12:48 +0000)]
Define CONFIG_GPL in config.asm, fixes compilation with YASM.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32736 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agotell that x264's crf gives better results than qp,
gpoirier [Mon, 27 Dec 2010 10:02:23 +0000 (10:02 +0000)]
tell that x264's crf gives better results than qp,
so crf should be prefered over qp
patch by Joseph Miller %josephcmiller2 A gmail P com%

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32735 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoRemove pointless case braces.
cboesch [Sat, 25 Dec 2010 16:58:00 +0000 (16:58 +0000)]
Remove pointless case braces.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32734 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoUse '@' Doxygen syntax in subreader module.
cboesch [Fri, 24 Dec 2010 23:15:49 +0000 (23:15 +0000)]
Use '@' Doxygen syntax in subreader module.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32733 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoAdd brief description for mp_basename.
cboesch [Fri, 24 Dec 2010 23:13:37 +0000 (23:13 +0000)]
Add brief description for mp_basename.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32732 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoAdd mp_path_is_absolute function.
cboesch [Fri, 24 Dec 2010 23:09:08 +0000 (23:09 +0000)]
Add mp_path_is_absolute function.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32731 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoChange Doxygen syntax for mp_dirname.
cboesch [Fri, 24 Dec 2010 23:05:49 +0000 (23:05 +0000)]
Change Doxygen syntax for mp_dirname.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32730 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoFactorize subtitles loading between mplayer and mencoder.
cboesch [Fri, 24 Dec 2010 23:02:24 +0000 (23:02 +0000)]
Factorize subtitles loading between mplayer and mencoder.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32729 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoRemove __ptr32 and __ptr64 typedefs, we do not need them and
reimar [Thu, 23 Dec 2010 18:20:51 +0000 (18:20 +0000)]
Remove __ptr32 and __ptr64 typedefs, we do not need them and
they cause compilation errors with cygwin's mingw-w64 cross-compilers
(32 bit target) since it its _mingw.h has a "#define __ptr32",
which makes these typedefs an invalid syntax.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32728 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoDisable VIDIX on Windows if then required ntddk.h header is not available.
reimar [Thu, 23 Dec 2010 18:11:54 +0000 (18:11 +0000)]
Disable VIDIX on Windows if then required ntddk.h header is not available.
It is missing at least in the mingw-w64 cross-compile toolchain that
is part of Cygwin.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32727 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoconfigure: Add HAVE_MMAP definition for FFmpeg to config.h.
diego [Thu, 23 Dec 2010 12:01:27 +0000 (12:01 +0000)]
configure: Add HAVE_MMAP definition for FFmpeg to config.h.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32726 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoconfigure: Disable internal libfaad2 compilation by default.
diego [Thu, 23 Dec 2010 11:14:25 +0000 (11:14 +0000)]
configure: Disable internal libfaad2 compilation by default.

The internal libfaad2 copy is slated for removal in 2011. In order to
doublecheck for any unexpected issues, compilation will be disabled
throughout a short grace period before final removal.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32725 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoCompilation fixes for currentl Cygwin.
reimar [Sun, 19 Dec 2010 22:02:52 +0000 (22:02 +0000)]
Compilation fixes for currentl Cygwin.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32724 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoReplace two malloc+memset with calloc.
cboesch [Sun, 19 Dec 2010 14:19:04 +0000 (14:19 +0000)]
Replace two malloc+memset with calloc.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32723 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoSimplify video format condition in get_metadata.
cboesch [Sun, 19 Dec 2010 14:15:44 +0000 (14:15 +0000)]
Simplify video format condition in get_metadata.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32722 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoRemove pointless case braces in get_metadata.
cboesch [Sun, 19 Dec 2010 14:09:21 +0000 (14:09 +0000)]
Remove pointless case braces in get_metadata.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32721 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoFix potential heap overflow in get_metadata.
cboesch [Sun, 19 Dec 2010 14:03:24 +0000 (14:03 +0000)]
Fix potential heap overflow in get_metadata.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32720 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agollvmpipe, while only slow instead of insanely slow, is a software renderer.
reimar [Sat, 18 Dec 2010 20:56:37 +0000 (20:56 +0000)]
llvmpipe, while only slow instead of insanely slow, is a software renderer.
Recognize it as such and disable -vo gl_nosw on it.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32719 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agosync with en/mplayer.1 rev. 32699
jrash [Fri, 17 Dec 2010 09:38:26 +0000 (09:38 +0000)]
sync with en/mplayer.1 rev. 32699

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32718 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoAdd support for HTTP 307 (Temporary Redirect) responses.
cboesch [Thu, 16 Dec 2010 19:58:35 +0000 (19:58 +0000)]
Add support for HTTP 307 (Temporary Redirect) responses.

Patch by chocolateboy (chocolateboy from cpan org)

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32717 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoCredit Compn for some of his work.
diego [Wed, 15 Dec 2010 13:34:44 +0000 (13:34 +0000)]
Credit Compn for some of his work.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32716 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoRemove pointless NULL checks before free.
reimar [Tue, 14 Dec 2010 19:51:26 +0000 (19:51 +0000)]
Remove pointless NULL checks before free.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32715 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoget rid of double (
reimar [Tue, 14 Dec 2010 19:49:03 +0000 (19:49 +0000)]
get rid of double (

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32714 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoadd winamp useragent example
compn [Sun, 12 Dec 2010 21:19:48 +0000 (21:19 +0000)]
add winamp useragent example

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32713 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoadd realplayer user-agent
compn [Sun, 12 Dec 2010 21:13:12 +0000 (21:13 +0000)]
add realplayer user-agent

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32712 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoAdd a missing free to ASF demuxer close.
reimar [Sun, 12 Dec 2010 20:59:18 +0000 (20:59 +0000)]
Add a missing free to ASF demuxer close.
Fixes bug #1238.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32711 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoAdd playlist parser for .nsc files.
reimar [Sun, 12 Dec 2010 19:25:43 +0000 (19:25 +0000)]
Add playlist parser for .nsc files.
Tested to properly decode .nsc files, but not properly tested since
no publically available stream could be found.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32710 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoadd some profile information
compn [Sun, 12 Dec 2010 17:16:59 +0000 (17:16 +0000)]
add some profile information

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32709 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agolen < 8 is also invalid for 64-bit codec chunk size.
reimar [Sun, 12 Dec 2010 16:50:13 +0000 (16:50 +0000)]
len < 8 is also invalid for 64-bit codec chunk size.
Previous code could cause hang.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32708 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoAvoid using uninitialized data if index read does not return enough data.
reimar [Sun, 12 Dec 2010 14:31:17 +0000 (14:31 +0000)]
Avoid using uninitialized data if index read does not return enough data.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32707 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoFix ad_faad crash when used on an empty audio stream.
reimar [Sun, 12 Dec 2010 13:56:35 +0000 (13:56 +0000)]
Fix ad_faad crash when used on an empty audio stream.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32706 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoSupport 0xff as tag for AAC audio and avoid an endless loop for unknown
reimar [Sun, 12 Dec 2010 12:51:32 +0000 (12:51 +0000)]
Support 0xff as tag for AAC audio and avoid an endless loop for unknown
audio format by treating it as MP2/3 but print a very annoying error
message in that case.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32705 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoImprove speex codec pts handling, make audio timestamps work reasonably
reimar [Sun, 12 Dec 2010 12:36:56 +0000 (12:36 +0000)]
Improve speex codec pts handling, make audio timestamps work reasonably
even with the native demuxer as long as seeking is not done.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32704 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoFix allocations: always free before overwriting a pointer with a newly
reimar [Sun, 12 Dec 2010 12:13:01 +0000 (12:13 +0000)]
Fix allocations: always free before overwriting a pointer with a newly
allocated one, always use calloc instead of realloc when the previous
data is not needed.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32703 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoAdd validity check for stream_seek argument to avoid a integer overflow
reimar [Sun, 12 Dec 2010 11:45:47 +0000 (11:45 +0000)]
Add validity check for stream_seek argument to avoid a integer overflow
for huge negative values that would break the internal state of the stream buffer.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32702 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoFix memleaks on error.
reimar [Sun, 12 Dec 2010 10:37:15 +0000 (10:37 +0000)]
Fix memleaks on error.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32701 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoTreat non-ref frames like B-frames even if has_b_frames is not set and
reimar [Sun, 12 Dec 2010 10:23:41 +0000 (10:23 +0000)]
Treat non-ref frames like B-frames even if has_b_frames is not set and
they are indeed not B-frames (no reordering).
This happens with flv files, as in bug #1079, and this change fixes that
corruption.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32700 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agocorrect -tv audiorate description, change bitrate to samplerate
compn [Sun, 12 Dec 2010 01:32:21 +0000 (01:32 +0000)]
correct -tv audiorate description, change bitrate to samplerate

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32699 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoPrefer yuv4mpeg via libavformat, since that one supports multiple
reimar [Sat, 11 Dec 2010 23:53:27 +0000 (23:53 +0000)]
Prefer yuv4mpeg via libavformat, since that one supports multiple
color formats like 444P etc.
Implements bug #1578.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32698 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoReplace memcpy with memove since at least src==dst is possible.
reimar [Sat, 11 Dec 2010 23:19:13 +0000 (23:19 +0000)]
Replace memcpy with memove since at least src==dst is possible.
Fixes another issue that is part of bug #1280.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32697 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoFix several memleaks in TS demuxer.
reimar [Sat, 11 Dec 2010 23:15:48 +0000 (23:15 +0000)]
Fix several memleaks in TS demuxer.
Fixes bug 1280.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32696 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoReplace hard-coded number for loop limits for array index by
reimar [Sat, 11 Dec 2010 22:26:57 +0000 (22:26 +0000)]
Replace hard-coded number for loop limits for array index by
the define used in the array declaration.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32695 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoReplace malloc+memset with calloc and use sizeof(*variable).
reimar [Sat, 11 Dec 2010 22:22:54 +0000 (22:22 +0000)]
Replace malloc+memset with calloc and use sizeof(*variable).

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32694 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoAdd memset to avoid using uninitialized data with sample in bug 1280.
reimar [Sat, 11 Dec 2010 22:19:46 +0000 (22:19 +0000)]
Add memset to avoid using uninitialized data with sample in bug 1280.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32693 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoFix mp_check_mp3_header: it checked for a byte-swapped MP3-header
reimar [Sat, 11 Dec 2010 21:11:33 +0000 (21:11 +0000)]
Fix mp_check_mp3_header: it checked for a byte-swapped MP3-header
on little-endian, and on big-endian it would only accept a MP3-header
that would be valid when read in both directions.
The latter was the reason for bug 905, causing the PS demuxer to
claim files far too agressively (the MP3 check avoiding misdetection
as DV is not exactly a sane approach, but it mostly works).

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32692 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoFix crahs with -audiofile and audio disabled.
reimar [Sat, 11 Dec 2010 19:32:23 +0000 (19:32 +0000)]
Fix crahs with -audiofile and audio disabled.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32691 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoReset ctx->vo_initialized to 0 on a resolution change.
reimar [Sat, 11 Dec 2010 18:37:00 +0000 (18:37 +0000)]
Reset ctx->vo_initialized to 0 on a resolution change.
Otherwise we might think the filter chain/vo is ready when it
actually is not, leading to a crash.
Fixes crash part of bug 1156.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32690 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoFix possible memory leaks on error.
reimar [Sat, 11 Dec 2010 17:45:41 +0000 (17:45 +0000)]
Fix possible memory leaks on error.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32689 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoFix insufficient padding/memset at the end of demuxer packets.
reimar [Sat, 11 Dec 2010 16:36:17 +0000 (16:36 +0000)]
Fix insufficient padding/memset at the end of demuxer packets.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32688 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoUse FFMAX for slightly better readability.
reimar [Sat, 11 Dec 2010 15:49:09 +0000 (15:49 +0000)]
Use FFMAX for slightly better readability.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32687 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoRemove useless assignment already done in new_sh_video.
reimar [Sat, 11 Dec 2010 15:46:30 +0000 (15:46 +0000)]
Remove useless assignment already done in new_sh_video.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32686 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoRemove pointless assignments that are already handled in new_sh_audio.
reimar [Sat, 11 Dec 2010 15:45:31 +0000 (15:45 +0000)]
Remove pointless assignments that are already handled in new_sh_audio.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32685 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoMove setup of sh_audio->format to a more appropriate place (in asfheader.c).
reimar [Sat, 11 Dec 2010 15:43:24 +0000 (15:43 +0000)]
Move setup of sh_audio->format to a more appropriate place (in asfheader.c).

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32684 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoFix some unaligned writes and avoid some (incorrect due to alignment) casts.
reimar [Sat, 11 Dec 2010 15:30:28 +0000 (15:30 +0000)]
Fix some unaligned writes and avoid some (incorrect due to alignment) casts.
Might also fix bug #371.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32683 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoReset mpvdec to NULL after uninit.
reimar [Sat, 11 Dec 2010 14:40:39 +0000 (14:40 +0000)]
Reset mpvdec to NULL after uninit.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32682 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoFix spelling in comment.
reimar [Sat, 11 Dec 2010 13:56:19 +0000 (13:56 +0000)]
Fix spelling in comment.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32681 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoAllow cycling subtitles backwards with 'J'.
reimar [Sat, 11 Dec 2010 12:44:39 +0000 (12:44 +0000)]
Allow cycling subtitles backwards with 'J'.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32680 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoSupport very high libav* message levels as e.g. the flac parser
reimar [Sat, 11 Dec 2010 12:23:07 +0000 (12:23 +0000)]
Support very high libav* message levels as e.g. the flac parser
produces and map them to MSGL_DBG2 instead of MSGL_ERROR.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32679 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoDo not generate nonsensical pts values for FLAC audio.
reimar [Wed, 8 Dec 2010 22:53:52 +0000 (22:53 +0000)]
Do not generate nonsensical pts values for FLAC audio.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32678 b3059339-0415-0410-9bf9-f77b7e298cf2

9 years agoAdd support for FLAC audio parsing, fixes playback time jumping
reimar [Wed, 8 Dec 2010 19:43:51 +0000 (19:43 +0000)]
Add support for FLAC audio parsing, fixes playback time jumping
wildly.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32677 b3059339-0415-0410-9bf9-f77b7e298cf2