1
mirror of https://github.com/mpv-player/mpv synced 2025-01-13 00:06:25 +01:00
Commit Graph

30754 Commits

Author SHA1 Message Date
Uoti Urpala
ff2df2ac54 Merge svn changes up to r30322 2010-01-25 15:17:50 +02:00
Uoti Urpala
8dd016c538 Ignore svn changes up to r30306
libswcale / internal FFmpeg build stuff.
2010-01-25 15:09:19 +02:00
Uoti Urpala
69fe2522f8 Merge svn changes up to r30301 2010-01-25 15:07:30 +02:00
Uoti Urpala
9436e0452f Ignore svn change r30269
Useless internal FFmpeg build stuff.
2010-01-25 14:56:15 +02:00
Uoti Urpala
36dae0ee44 Merge svn changes up to r30268 2010-01-25 14:55:14 +02:00
Uoti Urpala
deb9536257 Skip svn change r30265 (default mp3 decoder change)
The FFmpeg decoder is slower on most machines (integer-only) and has
some other problems.
2010-01-25 14:52:59 +02:00
Uoti Urpala
0f72485ee7 Merge svn changes up to r30264
Conflicts:
	gui/wm/ws.c
2010-01-25 14:52:29 +02:00
Uoti Urpala
8b33a04d02 Ignore svn changes up to r30255
libswscale changes and useless stuff for internal FFmpeg build.
2010-01-25 14:45:22 +02:00
Uoti Urpala
47a04d40f3 Merge svn changes up to r30250 2010-01-25 14:34:56 +02:00
Uoti Urpala
ffc3db2239 vd_ffmpeg: fix compilation with neither VDPAU nor XvMC enabled
The get_format() function was defined under
 #if CONFIG_XVMC || CONFIG_VDPAU
but recent commit ca217f4557 added an
unconditional reference to it, causing linking to fail with an
undefined reference if neither feature was enabled. Fix by removing
the #if, there's no reason reason why it would be needed.
2010-01-21 01:09:28 +02:00
Uoti Urpala
1ef8d887d4 vd_ffmpeg: FFmpeg-mt changed has_b_frames API, update 2010-01-20 20:32:00 +02:00
Uoti Urpala
d4159a7d88 vd_ffmpeg: move redundant info messages to MSGL_V level
Move two messages printed when using VDPAU/XvMC to MSGL_V level:
"[VD_FFMPEG] XVMC-accelerated MPEG-2.\n"
"[VD_FFMPEG] Trying pixfmt=%d.\n"

The first is redundant because this info is normally visible from the
decoder name, and it was also incorrectly printed in the VDPAU case
too. Add a different MSGL_V message for VDPAU.

Also make all these messages not translatable.
2010-01-20 17:21:39 +02:00
Uoti Urpala
ca217f4557 vd_ffmpeg: disable callbacks for threaded decoding
MPlayer's slice and direct rendering related callbacks are not safe to
call from other threads, so disable those features if more than one
decoding thread is specified. This should fix some issues when using
threaded decoding with formats other than h264 (in the h264 case the
callbacks were already disabled for other reasons).

This commit moves most of the code that sets special avctx parameters
for VDPAU and XvMC. Before that was done after avcodec_open() based on
the selected output image format; now it's done before avcodec_open()
based on the capabilities of the selected decoder. At least the code
selecting the thread count must be before avcodec_open(), and I think
there is no reason to try to keep the previous structure otherwise
either. The image format-based approach was implemented by Reimar
with the intended goal of eventually selecting between software and
VDPAU decoders under one FFmpeg decoder type. I consider that goal to
be questionable, and the approach certainly made the existing code
significantly messier for no functionality benefit.
2010-01-20 16:31:13 +02:00
Uoti Urpala
a0f08fbebb stream: improve EOF handling in seeks
Reset stream 'eof' flag when a seek succeeds, and allow seeking to a
position at or past EOF (in the sense that the seek succeeds and
stream_tell() then returns that position).

This fixes at least some demuxer problems where an attempt to read
the index from the end of an incomplete file would set the 'eof' flag
and cause subsequent reads to fail, even if failure to read the index
would otherwise be nonfatal and demuxing could continue after seeking
back.

Partially based on a patch from Laurent <laurent.aml@gmail.com>.
2010-01-18 14:38:56 +02:00
Uoti Urpala
1f126fc60c Avoid misleading error "ASS: cannot add video filter"
When using libass with a VO that has direct EOSD support the vf_ass
video filter is unnecessary and is not added automatically, but the
code that adds the filter when it is needed produced misleading output
messages in this case. The following two messages were printed at
MSGL_ERR level, making it look like an error condition:
Couldn't open video filter 'ass'.
ASS: cannot add video filter

Add a version of vf_open_plugin() called vf_open_plugin_noerr() that
does not itself print an error message if opening a vf fails and that
returns the exact status code returned by the vf open() function. Make
vf_ass return a different status code depending on whether there was
an actual error or if it determined a filter would be redundant. Use
the _noerr function in the code adding the filter to avoid the first
message and check the status code to avoid the second.
2010-01-16 20:37:13 +02:00
Uoti Urpala
43c3a07f58 subtitles: avoid running subreader.c parser when using libass
When loading external subtitle files, the code always tried parsing
the file with subreader.c sub_read_file() first, even if libass was
then used to parse and render the file (the results of the first
parsing would be ignored in that case). This could cause problems like
unnecessary error messages. Change the code to try libass parsing
first if enabled, and skip subreader.c parsing if that succeeds.
2010-01-16 19:40:45 +02:00
reimar
5f5462c0ec Add HAVE_FAST_CLZ define and set it to 0 to keep the status quo for now.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30322 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-16 15:21:36 +00:00
reimar
b18ddf9807 HAVE_INLINE_ASM for FFmpeg should be one since we only support
compilers that can do inline asm.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30321 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-16 15:20:26 +00:00
reimar
ee2a738ff8 Document some of the ext_stub magic.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30320 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-16 15:04:17 +00:00
reimar
e09b799ade 100l, forgot to change the "magic" value in the stub also in the place replacing it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30319 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-16 15:02:49 +00:00
compn
8568e701ea add AV1x, AVup and VDTZ fourcc to ffrawuyvy and VDTZ to rawuyvy
change ffsipr to working (and first choice by default) in codecs.conf


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30318 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-16 13:59:59 +00:00
stefano
4644bd6293 Simplify reset_ptr(): employ usePal() macro rather than enumerating
all the paletted formats.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30317 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-16 11:08:16 +00:00
Gabrov
f7c5fa6a14 synced with r30311
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30316 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-16 10:48:23 +00:00
Uoti Urpala
6ead3e936b subreader.c: fix excessive memory use with some external subtitles
For each sequence of consecutive partially overlapping subtitles, the
algorithm calculating screen positions for the subtitles allocated a
2*subtitle_count*subtitle_line_count array. With some karaoke
subtitles that had lots of rapidly changing overlapping subtitles this
became large enough to use gigabytes of memory. Make the behavior
saner by limiting the line count to SUB_MAX_TEXT lines (the maximum
number of lines to show on screen at once, currently 12). This
shouldn't change the end result of the algorithm other than possibly
printing different warnings.
2010-01-16 12:44:00 +02:00
mru
93710d64bb Add symbol versioning for shared libraries
Based on patch by Reinhard Tartler <siretart tauware de>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30315 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-16 04:48:55 +00:00
reimar
3abd3dcf57 We only need to disable seeking back in ad_ffmpeg when we actually _use_
a parser, not when just needs_parsing is set.
Fixes playback of e.g. ADPCM in AVI like http://samples.mplayerhq.hu/avi/imaadpcm.avi


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30314 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-15 21:01:31 +00:00
ramiro
87e34c3f3f Don't initialize normal horizontal filter if MMX2 filter is used.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30313 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-15 19:50:59 +00:00
reimar
1c6c7706ec -demuxer rawaudio data will often need parsing (e.g. when it is used for raw
AC3 instead of libavformat), so set needs_parsing.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30312 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-15 19:01:03 +00:00
ptt
ec61df5d79 added a missing full stop
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30311 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-15 15:04:30 +00:00
zuxy
7231e76268 Set _optimizing for x86-64.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30310 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-15 09:47:45 +00:00
zuxy
0fd68f17ca The undocumented x86-64 is a better fallback for core2 than nocona.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30309 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-15 09:33:38 +00:00
zuxy
02531411b3 Add -fno-common to avoid misalignment for global var under win32 like what
has been done for ffmpeg.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30308 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-15 09:31:15 +00:00
zuxy
956f0444ae Set HAVE_FAST_CMOV to 0 for NetBurst based x86-64 processors, e.g. Prescott.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30307 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-15 09:10:23 +00:00
zuxy
0bd2e793c1 Const correctness for src pointer. Remove all constness related warnings in
libswscale.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30306 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-15 08:51:51 +00:00
zuxy
9cbb5c686f Fix typo in r30302
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30305 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-15 07:55:07 +00:00
stefano
32c03dd8c2 Fix typo.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30304 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-15 00:39:25 +00:00
ramiro
8af165c26f Remove unused clip_table code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30303 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-14 19:12:42 +00:00
cehoyos
3e2af067ec Fix compilation after recent changes in FFmpeg.
Patch by Etienne Buira, etienne D buira A free D fr


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30302 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-14 12:06:38 +00:00
ramiro
1cda8b002f Add const qualifier to rgb48 to YV12 functions' src.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30301 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-14 06:19:45 +00:00
ramiro
dadbe620d6 Add missing parameter to rgb48 to YV12 functions.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30300 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-14 06:19:10 +00:00
reimar
e38bcd7d05 Use double-precision constants instead of single precision that gets cast to double.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30299 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-13 17:49:48 +00:00
cehoyos
2b3a5105ff Use double instead of float for pts.
Patch by Dan Oscarsson, Dan D Oscarsson A tieto D com 


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30298 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-12 23:03:03 +00:00
reimar
0dd5d0937a Avoid linking in assembler-optimized code that will never be used.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30297 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-12 22:21:21 +00:00
reimar
59fa6f549a Add very experimetal support for the Sun C compiler.
To actually work, all "packed" attributes have to be replaced by equivalent
pragmas and make DEPS=no must be used to compile.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30296 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-12 21:16:01 +00:00
reimar
977a21bea5 Change -pipe check to avoid misdetecting it as available for Sun's compiler.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30295 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-12 21:12:23 +00:00
reimar
06c2afa750 Use ARCH_X86_32 instead of the compiler-specific __i386__
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30294 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-12 20:26:15 +00:00
reimar
0d17260656 Remove hackish and not actually working code to make vidix compile with
compilers without inline assembly.
Almost no OS provides inb() etc. in its libraries, and removing the
broken fallback code makes it compile on Solaris with Sun C compiler.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30293 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-12 20:20:49 +00:00
reimar
c69a27ef8e Remove a check that simply can not have worked since it relied on a completely
uninitialized variable.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30292 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-12 19:51:29 +00:00
reimar
04fde0d936 Add checks for exp2, exp2 and log2f required by FFmpeg.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30291 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-12 19:41:44 +00:00
reimar
df73622d23 100l, fix typo that caused ad_hwac3 to fail to compile.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30290 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-12 19:03:49 +00:00