1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-17 12:25:03 +00:00
Commit Graph

1882 Commits

Author SHA1 Message Date
diego
81cebd7e45 Disable unused query_format functions for now until they are
investigated and properly used/fixed.
Fixes warnings:
vf_softskip.c:50: warning: 'query_format' defined but not used
vf_tfields.c:433: warning: 'query_format' defined but not used
vf_telecine.c:91: warning: 'query_format' defined but not used
vf_telecine.c:105: warning: 'config' defined but not used


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24625 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-26 23:00:43 +00:00
diego
65a43f35ed Disable buggy unused function via #if 0, blessed by Rich.
Fixes warning:
vf_pullup.c: At top level:
vf_pullup.c:82: warning: 'get_image' defined but not used


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24623 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-26 22:48:59 +00:00
diego
6e0510ff84 Remove unused crappy hash_pic function, blessed by Rich.
Fixes warning:
vf_detc.c:57: warning: 'hash_pic' defined but not used


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24622 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-26 22:43:38 +00:00
diego
04586de1dd MPEG-2 blocks at qp 1 get overfiltered by spp, apparently because "qp>>1" turns
it into 0, which causes an integer overflow later. Clip qp at 1 to avoid this.
patch by Alexander Strange, astrange ithinksw com


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24572 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-18 14:08:08 +00:00
diego
1660e3c123 Replace stdint.h #include by functionally equivalent inttypes.h.
The use of inttypes.h is more common throughout MPlayer and stdint.h
can create problems on obscure systems like HP-UX, see Bugzilla #831.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24565 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-18 09:30:42 +00:00
reimar
ca7b84e869 Make vd_ffmpeg work with lavf demuxer also for RealVideo.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24543 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-16 11:52:05 +00:00
reimar
af7f992651 Copy AC-3 bsmod field into IEC data-type field as required by the specs
Is not known to make any difference in practice (yet?).
Patch by Ulion (ulion2002 gmail com) minus a cast that seemed unnecessary
(beat me if I was wrong ;-) )


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24529 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-15 16:39:39 +00:00
reimar
d46f568fb4 Handle swab when input length is odd (treat it as if there was an additional
0 byte)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24528 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-15 16:30:39 +00:00
reimar
502368c206 Fix off-by-one error if fsize is odd (does handling that case even make sense?)
and remove a TODO comment that no longer applies.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24456 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 12:52:13 +00:00
reimar
73acce23fd Mark DTS tables as const
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24455 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 12:47:15 +00:00
reimar
2be7f28a86 Fix 10l typo in syncword
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24454 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 12:39:02 +00:00
reimar
c3d320c6ac Improved comments, based on patches by Ulion [ulion2002 gmail com]
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24453 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 08:56:04 +00:00
reimar
cb9466a0b3 Simplify and fix big-endian hwac3 header generation code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24452 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 08:54:06 +00:00
reimar
62e3a9e6a6 Deobfuscate: use IMGFMT_RGB_DEPTH and IMGFMT_IS_BGR
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24451 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-13 18:36:04 +00:00
diego
80c3412309 warning fix:
libmpcodecs/vf_divtc.c:206: warning: 'cmp' defined but not used


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24380 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-09 09:59:50 +00:00
diego
7bfa03ac43 warning fix:
libmpcodecs/ae_lavc.c:135: warning: 'lavc_find_atag' defined but not used


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24379 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-09 09:57:36 +00:00
gpoirier
a7aae21ad0 Add a check for c->head being NULL in pullup_free_context().
This fixes crashes when an invalid filter chain is built
Patch by Alexander Strange % astrange A ithinksw P com %
Original thread:
date: Sep 7, 2007 8:47 PM	 
subject: [MPlayer-dev-eng] [PATCH] crash in pullup with invalid filters


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24370 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-08 14:43:10 +00:00
reimar
cd4c2fdfb4 Support lowdelay flag
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24349 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-06 08:57:50 +00:00
diego
efb632ebcb warnig fix (blessed by Rich):
pullup.c:223: warning: 'qpcomb_y' defined but not used


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24339 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-04 12:54:45 +00:00
nicodvb
1dbfe77925 added .stream_aspect to st_video_t: if non-zero and if not specified otherwise
by the user the video pipeline will use it as current aspect ratio


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24319 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-01 15:54:45 +00:00
iive
e371194632 Remove imported rational calculation code and use the original one from avutil.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24315 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-01 10:50:36 +00:00
diego
90aa63e2fd Remove pointless #ifdef HAVE_XVMC within get_format(), all of the function
is protected by that #ifdef.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24274 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-28 17:38:08 +00:00
diego
89855e1022 warning fix:
vd_ffmpeg.c: At top level:
vd_ffmpeg.c:915: warning: 'get_format' defined but not used


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24273 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-28 17:36:04 +00:00
diego
2c74f01a5f warning fix:
vf_scale.c:359:92: warning: trigraph ??) ignored, use -trigraphs to enable


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24269 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-28 17:06:00 +00:00
diego
a2c5abc3d2 cosmetics: Add some explanatory comments to #endif directives.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24268 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-28 17:02:19 +00:00
diego
37fe15b1c8 warning fix:
ve_qtvideo.c: At top level:
ve_qtvideo.c:109: warning: 'decompressor' defined but not used


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24267 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-28 16:59:24 +00:00
reimar
bf61021b10 Add code to clear left and right borders not only top and bottom.
Patch by Tomas Janousek (tomi nomi cz) with small modifications by me.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24263 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-28 13:54:27 +00:00
diego
84157efa5a Clean up the way get_path is handled: Compile get_path.c to an object to link
against instead of directly #including the C file and replace the many extern
declarations by a proper header file.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24262 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-28 11:20:24 +00:00
reimar
949880a056 Set sample_rate and bit_rate from sh_audio as fallback in case sh_audio->wf
is not available.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24246 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-27 15:51:04 +00:00
diego
b9fc895dc1 warning fix:
pullup.c: In function 'decide_frame_length':
pullup.c:569: warning: unused variable 'f3'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24196 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-25 17:15:05 +00:00
diego
5dc65565ca Remove redundant variable declaration.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24168 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-25 12:19:16 +00:00
diego
2322b23431 Remove redundant variable declaration.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24166 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-25 12:10:33 +00:00
diego
8d7d86bafc Remove redundant variable declaration.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24163 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-25 11:59:28 +00:00
diego
4ea8b17121 Fix some unused variable warnings.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24162 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-25 09:46:47 +00:00
diego
ed6463333f Fix unused variable warning.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24145 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-25 00:23:38 +00:00
diego
54c3a567e3 Fix unused variable warning.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24140 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-24 11:18:07 +00:00
diego
9fdcecc029 Remove unused variable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24139 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-24 11:16:32 +00:00
reimar
b7ce6217d6 Use new request_channels
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24128 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-23 20:29:57 +00:00
reimar
b284631167 Runtime-patching for windows to fix crash with drv43260.dll
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24107 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-20 16:17:13 +00:00
cehoyos
0132ac3f9d printf in mp_image.h was changed to fprintf in r17972.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24040 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-08 23:28:29 +00:00
michael
16be45ef4a make x264 work again after the h264-libx264 renaming
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24024 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-07 18:48:13 +00:00
cehoyos
f2dee327b2 Move alloc_mpi and copy_mpi from libmenu/vf_menu.c to libmpcodecs/mp_image.c.
Patch by Attila Ötvös.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24014 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-04 22:12:49 +00:00
uau
3d0271ef40 Revert setting audio output channel count for FFmpeg
The FFmpeg API needs to be fixed before this can be done sanely.
ffdca wants the desired output channel count to be set in
avctx->channels. Unfortunately it also completely fails if the requested
number of channels is not available rather than returning a different
amount (if 6 channels are requested we'd probably rather use stereo than
fail completely).
ffvorbis ignores caller-set values in avctx->channels. It writes the
channel count there once during init. This means the caller can only
set the count before init because later there would be no indication
whether the channel count in avctx reflects real output.
ffwma requires the caller to supply the encoded channel count
in avctx->channels during init or it fails. So it is not possible to
set a different number of desired output channels there before init
either.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23998 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-02 21:54:14 +00:00
reimar
c16275939d Set lavc_context->channels before opening the codec, it is sufficient to
select the desired number of codecs for ffdca and does not break other codecs
like ffvorbis that do not (re)set the channel number during decode.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23994 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-01 23:36:40 +00:00
michael
2fe0411b9a allow to specify the audio bitrate in bits (some codecs need that ...)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23977 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-31 17:51:39 +00:00
michael
96f2f7d45f make timestamps out of hot air
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23974 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-31 17:12:28 +00:00
michael
e5935e91ce make a few more parameters accessable from mplayer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23973 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-31 17:09:54 +00:00
reimar
aac28cfe4c Move extern int audio_output_channels; to ad_internal.h
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23938 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-30 15:23:25 +00:00
reimar
80e0ec3e10 Indicate desired number of output channels to ffmpeg audio decoder.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23937 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-30 15:19:35 +00:00
reimar
1233361b46 Avoid void * arithmetic
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23936 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-30 14:52:07 +00:00