1
mirror of https://github.com/mpv-player/mpv synced 2024-10-18 10:25:02 +02:00
Commit Graph

1955 Commits

Author SHA1 Message Date
diego
bc30e8e673 Unconditionally compile the Matroska demuxer.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18405 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-08 21:41:15 +00:00
nicodvb
56286b38d4 COSMETICS: moved code to parse mpeg1/2 A/R to mpeg_hdr.c
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18399 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-07 16:05:38 +00:00
diego
c3ec96fb71 support for vfps OGM files
patch by Elphel Inc. (blessed by Roberto)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18395 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-06 07:31:49 +00:00
pacman
a2783c69ba Fix calculation of stream sizes when they are too big for a 32-bit variable
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18394 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-06 06:23:23 +00:00
nicodvb
78577530ca fixed %d->PRIu64 in read_mpeg_timestamp()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18383 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-03 18:18:25 +00:00
nicodvb
8622d18bde stream_read_word() returns _unsigned_ int
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18382 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-03 18:12:38 +00:00
nicodvb
c5777d7f53 in read_mpeg_timestamp() cast int expression to uint64_t before shifting to avoid truncation of bits and to prevent propagation of bit 1 as sign bit in pts
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18381 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-03 17:55:02 +00:00
rfelker
5878ff9f5a 100000l to the fools who don't know C
These were all found while auditing for malloc(A*B) type bugs.
Removing them makes it easier to find real incorrect usage and makes
the code more readable.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18367 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-01 02:04:09 +00:00
uau
c843190441 Change common pts variables from floats to doubles. Individual demuxers
should be changed later.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18310 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-27 11:13:21 +00:00
diego
154fff61c9 Increase HEADER_SEARCH_SIZE, fixes high-bitrate streams from demoscene.tv.
noticed by Soeren Sonnenburg, mplayer-ml -- at -- nn7 -- dot -- de


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18252 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-24 15:12:06 +00:00
nicodvb
2bea0ef1dd removed more unused stuff
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18250 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-24 14:23:03 +00:00
nicodvb
ac1506c8b3 when muxing mpeg audio streams analyze the first 32 KB of data to obtain the most likely correct layer, otherwise every misdetection during parse_audio() will lead to wrong timestamps and loss of synchrony
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18249 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-24 14:04:10 +00:00
rtognimp
6c4d9bfe51 4 - Implement a better way to calculate current audio pts and use it for
audio decoded with ad_libvorbis, ad_ffmpeg and ad_faad.

Patch by Uoti Urpala


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18243 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-24 10:58:40 +00:00
rtognimp
4b45ec30e4 3 - Move a definition of MP_NOPTS_VALUE from muxer.h to demuxer.h to
make it available in more files (needed for next patch).

Patch by Uoti Urpala


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18242 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-24 10:36:29 +00:00
nicodvb
538ae3dd8c simplified parse_audio()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18239 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-24 09:48:57 +00:00
reynaldo
3a406e94d7 Get ride of the several if(identify) messy lines and rearangment of some of the output, both patches by Kiriuja mplayer-patches AT en-directo_net, his changes are barely unrelated, nevertheless Im commiting them thogeter just for the sake of my mental healt, I had both patches already applied on my local three
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18238 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-24 07:20:34 +00:00
mosu
558f53de4b Do not give bogus timestamps for laced packets with no default duration. Patch by Uoti Urpala ( uoti ! urpala () pp1 ! inet ! fi ).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18237 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-24 06:28:45 +00:00
gpoirier
152d7ed02c resource leak fix.
detected by
Covertity's checker:
CID: 154
Checker: RESOURCE_LEAK
Description: Returned without freeing storage "cddb_info"


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18226 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-23 15:14:03 +00:00
diego
469c91859a Rename some forgotten #ifdef STREAMING_LIVE_DOT_COM to STREAMING_LIVE555.
patch by Lyakhovets Andrey, lyakhovets <<@>> rovercomputers <<.>> ru


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18220 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-23 12:29:10 +00:00
rtognimp
c96851a3f0 Partially revert 1.140, restoring the old behaviour for all codecs
except for twos and sowt.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18219 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-23 11:38:06 +00:00
nicodvb
e48466f86c removed more unused code and struct members
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18201 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-22 18:15:23 +00:00
nicodvb
d78862db6a removed unused variables
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18200 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-22 18:02:19 +00:00
nicodvb
bf75c942fc moved inline at beginning of declaration
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18198 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-22 17:55:39 +00:00
nicodvb
1733f0847a finally replaced the old interleaving with the new one that respects buffering and [pd]ts<->scr constraints; don't check spriv->framebuf_used in find_best_stream()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18197 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-22 17:47:53 +00:00
nicodvb
168e6e1daf introduced new functions to handle pack writing and interleaving strategy (will soon replace current ones)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18193 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-22 15:41:16 +00:00
nicodvb
37dae9ebcb fixed muxrates for xvcd and xsvcd
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18188 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-22 13:31:05 +00:00
nicodvb
6ba9d6ce20 audio init code was previously moved to fix_parameters() so removed from write_chunk()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18187 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-22 13:25:46 +00:00
nicodvb
2c06ca54a2 introduced structures and code to keep track of decoder's buffers sizes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18184 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-22 13:18:32 +00:00
nicodvb
f86a32a270 new code to simplify assignment of timestamps; removed temp_ref from mpeg_frame_t and modified add_frame() accordingly; removed no more used drop_delayed_audio() and save_delayed_audio()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18182 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-22 13:05:01 +00:00
reynaldo
c03b175452 Part3 of Otvos Attila's oattila AT chello-hu mp_msg changes, with lots of modifications as usual
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18177 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-22 05:12:10 +00:00
albeu
4d418c336f Implement getting colors. The mapping between MPlayer's gamma range
(-100/100) and v4l's range (0-65535) had to be changed a bit to avoid
rounding errors.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18174 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-21 12:47:37 +00:00
albeu
f865d5a17e Implement tv_get_color_options() and make tv_set_color_options() return
mainfull values.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18173 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-21 12:45:18 +00:00
nicodvb
26b3c3f9ca removed useless (and broken as hell) buffering code from muxer1; buffering constraints will be fully respected when one of the forthcoming patches is applied
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18167 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-20 21:40:03 +00:00
nicodvb
280b8e3875 removed skip_padding (never used and totally useless)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18166 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-20 20:53:48 +00:00
nicodvb
a160c8687f added support for DX50 and dx50 4CCs
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18165 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-20 20:48:55 +00:00
nicodvb
aa0de16882 fixed wrong operator precedence in parse_mpeg4_video()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18164 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-20 20:44:43 +00:00
nicodvb
471dc6e589 simplified code to patch the video framerate (removed silly comparisons)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18163 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-20 20:38:09 +00:00
nicodvb
1cbc74c755 changed timebase from 1024 to 300 (no rounding errors with any of the allowed framerates); write scr_extension accordingly. This is the first of a long series of patches to rewrite the muxer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18162 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-20 20:32:36 +00:00
diego
4016beda76 Make the RTP demuxer work with libdvdread 0.9.5.
ifo_types.h needs the macros UINT8_MAX UINT16_MAX and INT32_MAX, in
stdint.h, which are not defined when the language is C++ unless
__STDC_LIMIT_MACROS is defined.
patch by Emanuele Giaquinta, emanuele <<.>> giaquinta <<@>> gmail <<.>> com


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18138 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-18 14:41:41 +00:00
gpoirier
1cfdfe73be fixes decoding demoscene.tv nsv at http://213.186.36.129:8000
Fix suggested by Reimar, patch by RC.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18129 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-17 13:47:57 +00:00
reimar
1e390288ed Use ULL for > 32 bits constant.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18118 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-16 13:45:21 +00:00
reimar
79a05843ee remove completely pointless != NULL check
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18116 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-16 13:25:14 +00:00
reimar
97efe20cd1 always cast stream IDs to unsigned before comparing to MAX_STREAMS.
just defining them as unsigned might be a better fix though...


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18107 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-15 21:09:29 +00:00
reimar
79e10e452c 10l, keyframes must have tag 0x10, not 1.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18097 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-14 21:08:25 +00:00
reimar
d17ac2d7bf missing free in case sdpplin_parse_stream returns invalid stream.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18096 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-14 14:10:04 +00:00
reimar
5c51b13785 free memory on error in http_add_basic_authentication
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18095 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-14 13:37:38 +00:00
reimar
3a1d78bc7a remove vts_no parameter from mp_get_titleset_length - it is not only useless,
it also breaks STREAM_CTRL_GET_TIME_LENGTH.
Patch by kiriuja {mplayer-patches at en-directo net}


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18092 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-14 13:03:05 +00:00
reimar
27ea821577 missing ifoClose and return 1. Patch by kiriuja (mplayer-patches at en-directo net)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18079 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-12 11:19:49 +00:00
nicodvb
e6ab7db3e4 timestamps are 33 bits long, so they don't fit in an unsigned int; 10l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18078 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-11 20:05:24 +00:00
reimar
827ccaa941 try to detect flac bitrate early on to avoid division by zero problems.
Should also help with mencoder and -oac copy


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18076 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-11 10:46:52 +00:00