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
nicodvb
a8ea2c96c9 dereference muxer->priv only after having checked muxer!=NULL in write_chunk(); closes cid 206
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17819 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-11 23:38:54 +00:00
nicodvb
86d46b8ec9 init msec in mp_get_titleset_length() before using it; closes cid 251
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17818 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-11 23:29:02 +00:00
nicodvb
c446e2e8ee init variable in parse_mp4_object_descriptor before using it; fixes cid 237
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17817 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-11 23:26:02 +00:00
nicodvb
c8ceab9843 init delta_pts before using it; fixes cid 239
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17816 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-11 23:21:09 +00:00
nicodvb
a30246e193 check pce_ptr before using it; fixes cid 207
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17815 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-11 23:15:57 +00:00
rtognimp
b2a5c98e76 Only MAX_STREAMS streams are allowed (cid 115)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17811 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-11 16:42:46 +00:00
rtognimp
bb682fcc42 Fix memory leak cid 176
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17806 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-10 23:51:41 +00:00
rtognimp
b094203941 Fix memory leak cid 177
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17805 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-10 23:48:33 +00:00
reimar
0b48e15140 fix leak on read error (forgot to free demux packet)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17791 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-09 22:14:34 +00:00
reimar
0abc4c6d63 fix minor (i.e. unlikely to ever happen) leak when init fails
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17790 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-09 22:11:39 +00:00
rtognimp
a2d1fa71e8 Fix potential read from an unitialized pointer (CID: 236)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17789 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-09 22:09:03 +00:00
reimar
e078b7a14e in demux_ogg_read_packet initialize data to whole packet, reduces code and
fixes missing initialization in else + header packet case.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17786 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-08 22:23:21 +00:00
reimar
08394d0e01 name array is too small, use strlcpy instead of strncpy
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17785 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-08 21:13:16 +00:00
reimar
93ffd2ad79 Missing free_demux_packet after read error
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17780 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-08 15:21:12 +00:00
reimar
dddd5404a5 Fix base64 encoding for basic auth according to RFC.
Patch by Jeff D'Angelo (jcd+mplayer at psu edu).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17779 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-08 15:14:08 +00:00
reimar
5b3801e774 missing url_free when using proxy and connect fails
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17778 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-08 15:07:48 +00:00
reimar
cd94e7a740 stream_id == MAX_STREAMS is invalid, since counting starts with 0.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17777 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-08 13:26:36 +00:00
reimar
425573eb0d "i < sizeof(buf)" must be "i < sizeof(buf) - 5", since later buf[i + 5] is used.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17776 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-08 13:07:36 +00:00
aurel
0177d932d4 If we have a tuner, use that as a reason we have audio support, and do
not depend on audioset.
(patch by Jesse Allen <the3dfxdude _at_ gmail.com>)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17766 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-08 00:21:44 +00:00
diego
30d06685ac Reduce output verbosity in non-verbose mode, change some printf to mp_msg.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17757 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-06 08:26:07 +00:00
nicodvb
63985abe1a print ts_probe; 0x88 .. 0x8F in pes_private streams are not AC3 but DTS tracks (unsupported); save the size of the payload of the current PES packet in any case (used for ac3 detection)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17725 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-04 11:00:20 +00:00
rtognimp
bf96c6033e This patch fixes pcm (twos, swot) in MOV.
This fix playing samples produced by ffmpeg(which set correct values),
and many samples in archive.

Patch by Baptiste COUDURIER | baptiste . coudurier )( smartjog . com |


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17717 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-02 22:28:12 +00:00
nicodvb
04e57c5822 removed reference to inexistent extern variable
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17714 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-01 22:26:18 +00:00
nicodvb
fe7694f7a7 stream_control() returns int, not void
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17713 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-01 21:56:30 +00:00
nicodvb
941b080f9c try to get duration from the stream layer, if an implementation of STREAM_CTRL_GET_TIME_LENGTH is available
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17700 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-27 21:13:17 +00:00
nicodvb
f380dd575b implement STREAM_CTRL_GET_TIME_LENGTH to return the duration of the dvd currently playing
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17699 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-27 21:11:28 +00:00
nicodvb
e9632a768b added cur_title to dvd_priv_t in order to keep track of dvd title currently playing (range 1..N)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17698 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-27 21:08:58 +00:00
nicodvb
22226f94df added new stream_control() and new command: STREAM_CTRL_GET_TIME_LENGTH
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17697 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-27 21:06:47 +00:00
corey
aba3f4a7ab Add audio_delay argument to demux_mkv_seek.
Some uspecified amount of sugary caffeineated liquid to me.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17696 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-27 19:48:31 +00:00
nicodvb
b4c7e5cf9b DVB channels cycling; patch by Ben Zores ben p geekbox d org
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17682 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-24 22:46:23 +00:00
corey
08423e09bf Fix video delay when encoding with B-frames.
(missed this file)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17661 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-21 09:40:25 +00:00
corey
960b978a03 Fix video delay when encoding with B-frames.
Encoding delay is adjusted for on-the-fly during encoding.

Decoding delay is compensated for by setting an appropriate dwStart on
the audio stream (only in muxer_avi at this point).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17660 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-21 09:39:22 +00:00
gpoirier
528111d917 More complete ASF MIME detection, closing bug# 248,
patch by Zuxy Meng < zuxy POIS meng AH gmail.com >, Approved by Bertrand Baudet, who agrees to get the cola shipment. :)
Original thread:
Date: Nov 2, 2005 7:11 AM
Subject: [MPlayer-dev-eng] [PATCH] More complete ASF MIME detection, closing bug# 248


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17658 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-20 21:59:28 +00:00
bertrand
52dd75e903 Allows the LIVE555 library to forces the client's port to be used
when reading from an RTP/RTSP source.

Patch from Benjamin Zores <ben@geexbox.org> and Patrick Labatut <plabatut@gmail.com>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17651 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-19 13:27:27 +00:00
corey
89d848a8a2 dwStart support for mencoder.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17649 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-19 09:34:37 +00:00
corey
b4e5108496 dwStart support for mplayer.
* demux_avi sets stream_delay according to dwStart
* mplayer adjusts audio_delay according to stream_delay

3 related patches are pending, and I will apply them over the next few
days if all goes well.

As I mentioned on -dev-eng, the funny indentation is in preparation for
one of those pending patches.

See:
Date: Fri, 17 Feb 2006 00:53:28 -0800
To: mplayer-dev-eng@mplayerhq.hu
Subject: [PATCH] bframes, dwStart: individual patches


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17644 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-18 09:26:39 +00:00
corey
1ab575101a Second-try commit of this patch.
1. Include audio_delay as an argument to demux_seek.
2. Modify demux_seek_avi to adjust the audio/video stream positions so
   that mplayer/mencoder will instantly be in sync even when -delay is
   specified.

I've quadruple checked this time; hopefully I haven't missed anything.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17637 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-17 01:57:41 +00:00
aurel
efdabb1b55 Don't test the v4l2_input audioset field for audio capabilities but still try changing the mute setting (patch by Jesse Allen < the3dfxdude _at_ gmail.com >)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17627 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-14 20:13:55 +00:00
iive
0aa37a0db2 allow autodetection of pictures type when using mf://@file.list syntax
autodetection is based on first picture instead of the url


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17625 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-14 09:34:30 +00:00
henry
81317a1a79 do not forget to initialize dp->buffer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17612 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-12 17:01:30 +00:00
nicodvb
e7275c7781 delay rff by 6, not 3 frames, so the rff will be in the middle of the 12 frames sequence
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17604 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-12 11:47:36 +00:00
nicodvb
ea0696a999 experimental film2pal and ntsc2pal soft teleciner
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17601 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-12 11:04:12 +00:00
henry
deacfedb48 forgotten cast (blows on gcc4)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17600 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-12 10:51:04 +00:00
reimar
955fbdff3f we cannot continue without a crash when read_asf_header fails, since some
memory is allocated in that function (ugly!!).
Fixes bug #450, patch by Mikulas Patocka (mikulas at artax karlin mff cuni cz)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17599 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-12 09:58:27 +00:00
reimar
7bb8f38da8 add some sanity checks to new/resize_demux_packet
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17598 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-12 09:28:09 +00:00
nicodvb
574d5451fe init frame duration to 1/fps when we have a frame but not the enclosing sequence header: it's workaround against lavf's demuxer that doesn't sync to seq_hdr unlike mplayer's native demuxers
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17592 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-11 21:45:42 +00:00
nicodvb
ff5e9324bb tff wasn't correctly unset in soft_telecine()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17584 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-10 22:28:32 +00:00
reimar
4d7b6d85b6 add mpc extension so that playback starts faster.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17581 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-10 18:18:24 +00:00
corey
3f6e7ce5f5 Reverse commit of unfinished patch for passing audio_delay to the demuxers.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17570 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-09 19:39:51 +00:00
rathann
e7db4ccf1a Patch by Stefan Huehner / stefan % huehner ! org \
patch replaces '()' for the correct '(void)' in function
declarations/prototypes which have no parameters. The '()' syntax tell
thats there is a variable list of arguments, so that the compiler cannot
check this. The extra CFLAG '-Wstrict-declarations' shows those cases.

Comments about a similar patch applied to ffmpeg:

That in C++ these mean the same, but in ANSI C the semantics are
different; function() is an (obsolete) K&R C style forward declaration,
it basically means that the function can have any number and any types
of parameters, effectively completely preventing the compiler from doing
any sort of type checking. -- Erik Slagter

Defining functions with unspecified arguments is allowed but bad.
With arguments unspecified the compiler can't report an error/warning
if the function is called with incorrect arguments. -- Måns Rullgård


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17567 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-09 14:08:03 +00:00
aurel
f7af77f18a fix -idx with ODML files (patch by Benjamin Zores < ben _at_ tutuxclan.org >)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17565 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-09 00:40:35 +00:00
rtognimp
c2b69a1427 Fix CSeq answer for keepalive OPTIONS requests during playback
The CSeq was mispelled as Cseq, so MPlayer alwys answered with CSeq=1

Fixed with help from xiojason on #mplayer


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17563 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-08 23:44:44 +00:00
michael
ec7b288ed5 10l 1000 fps fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17557 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-08 01:19:13 +00:00
reimar
ceeff576d3 read data in nBlockAlign aligned chunks
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17555 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-07 22:12:34 +00:00
corey
15debd85d2 1. Include audio_delay as an argument to demux_seek.
2. Modify demux_seek_avi to adjust the audio/video stream positions so
   that mplayer/mencoder will instantly be in sync even when -delay is
   specified.

Other demuxers could be modified similarly in the future.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17554 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-07 20:22:44 +00:00
nicodvb
17102bc24c removed unused variables
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17541 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-06 21:22:30 +00:00
nicodvb
6f759b4d40 fixed wrong delta_frame calculation that would affect soft-telecine
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17540 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-06 20:59:19 +00:00
diego
5433d82ef1 Build muxers only when MEncoder is enabled.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17539 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-06 16:04:17 +00:00
nicodvb
2b3fe64e58 removed forgotten fprintf()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17519 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-30 21:18:53 +00:00
nicodvb
783976c512 use mp_a52_framesize() when liba52 is not available
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17494 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-27 23:07:53 +00:00
nicodvb
3ba7533cca export custom mp_a52_framesize(), needed to parse ac3 frames when liba52 is not present; will be moved in a more appropriate place sometimes in the future
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17493 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-27 23:07:16 +00:00
nplourde
49880f795c MPlayer OSX port: Add a call to UDFFindFile to verify that we are opening a valid udf image. Patch by Emanuele Giaquita <emanuele.giaquinta@gmail.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17491 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-27 03:07:13 +00:00
diego
89d549f984 Make clean/distclean behave uniformly in all directories.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17489 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-27 00:06:42 +00:00
michael
e6338c5858 change muxer_write_chunk() so that pts/dts _could_ be passed from encoder to muxer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17488 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-26 19:32:07 +00:00
michael
fe4aee5d94 limits.h for INT_MAX
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17486 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-25 20:55:47 +00:00
michael
2278fb117f correct block align
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17485 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-25 19:30:01 +00:00
michael
c88173f78a fix aac in mov/mp4
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17483 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-25 15:49:31 +00:00
michael
590e8e7153 pass vbv_size & max_rate from encoder to muxer over muxer_stream_t (if this is wrong/silly/10000000l then dont hesitate to flame / reverse)
make a few things like mux_rate, mux_max_delay, ... user settable
fixed buffer underflow errors when muxing to mpeg-ps


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17481 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-25 01:17:57 +00:00
michael
510f186eff setting codec_tag unconditionally to FMP4 is a bad idea (breaks mov/mp4)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17480 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-24 23:55:43 +00:00
diego
0690369049 Cygwin compilation fix
patch by Erik Lunchpail < erik_27can  %%@%%  yahoo  %%.%%  com >


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17447 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-20 22:44:12 +00:00
reimar
56e69ef4d7 suppress error message at eof
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17421 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-17 20:45:51 +00:00
reimar
dcb489559e faster and (IMHO) cleaner code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17419 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-17 20:07:06 +00:00
reimar
ab417b391a function to read from a demuxer up to (and including) the specified
3-byte pattern.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17418 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-17 20:04:49 +00:00
rtognimp
b7ee4aff72 Print some more useful data from header in verbose mode
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17402 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-15 22:00:53 +00:00
rtognimp
a35bcafdb4 Support sipr codec in old RealAudio files.
Closes bugzilla #435


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17401 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-15 21:58:10 +00:00
reimar
65cbd8d81b Always try to parse index chunk, no reason to check for movi_end
Also check return value of parse_index_chunk


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17395 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-14 22:47:38 +00:00
rtognimp
7598f44833 Fix printing of audio fourcc in hex format
Add explicit cast to fourcc print


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17392 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-14 19:24:55 +00:00
rtognimp
864811be2c Print audio 4cc for every stream, print 4cc of selected audio track
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17389 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-14 16:57:52 +00:00
rathann
fc716f9826 1l - one cast too many
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17385 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-14 04:09:48 +00:00
diego
988281c471 Update licensing information: The FSF changed postal address.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17368 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-13 00:23:32 +00:00
rathann
2601de4120 massive attack: mp_msg printf format fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17367 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-12 20:04:36 +00:00
rathann
f39b891ba0 convert some printfs to mp_msg
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17356 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-10 11:09:03 +00:00
nicodvb
ad978de549 added support for external libavformat
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17355 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-09 19:35:44 +00:00
diego
15f584a958 OS X compilation fix: Include inttypes.h so that uint32_t is not undefined.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17352 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-08 22:57:59 +00:00
nicodvb
f774739df9 include the right avcodec.h, consistently with the rest of mplayer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17344 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-08 14:03:42 +00:00
reimar
3b31501ff7 fix crash if no video codec available
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17343 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-08 13:35:54 +00:00
nicodvb
627d7781e6 disabled hack to read the properties of mpeg1/2 video in avi and asf: it's totally useless and leads mplayer to crash
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17340 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-07 22:20:46 +00:00
rtognimp
b59db28355 This patch makes real rtsp tell the server to deliver data at specified
bandwidth, if bandwidth cmdline option is given. Also, if that's given,
it uses it for sdp stream selection. If not given, the behavior is the
same as before.

It's used to implement something like turboplay in realplayer.

Patch by Tomas Janousek >>> tomi (At) nomi (.) cz <<<


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17333 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-06 14:39:10 +00:00
rtognimp
15bd7324c2 Don't leak memory (free audio reordering buffers)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17319 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-04 23:36:36 +00:00
rtognimp
3aa98b93f7 Remove assumption that all audio packets in a block have the same
timestamp; now the code stores timestamp for every packet and puts them
on reordered packets
Fixes ra10cook.rmvc


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17318 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-04 22:49:23 +00:00
rtognimp
6dafd56e2d 1000.0l timestamps are float
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17317 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-04 22:21:32 +00:00
mosu
2e40bfa136 Improved handling of text subs in Matroska files with adjacent newlines (\N) resulting in more than SUB_MAX_TEXT lines to display. Patch by Robert Henney (robh () rut ! org).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17309 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-04 12:05:15 +00:00
nicodvb
c28b22845c removed previously forgotten reording options/flags
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17302 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-03 22:14:27 +00:00
nicodvb
a5092cfa00 removed broken frame reording code; unified audio and video frame storing code (in memory, not in the packets); simple workaround to handle non-standard framerate mpeg1/2 video
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17299 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-03 22:02:11 +00:00
lorenm
0471912bbf h264es: don't seek to non-keyframes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17290 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-03 07:29:59 +00:00
nicodvb
db69d933c1 don't reset dvdsub->id unless -slang is specified; assign default sub stream id when demux->sub->id is -1 (autodetect)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17287 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-02 20:40:25 +00:00
corey
ffb7208370 Partial support for QuickTime sound atom version 2.
This doesn't add support for parsing the sound atom itself, but does
recognize the different offset at which the ESDS atom starts. Also,
this patch supports "3" in the channels field, which indicates
6-channel (5.1) audio. For more information, see this mail:

From: Corey Hickey <bugfood-ml@fatooh.org>
To: mplayer-dev-eng@mplayerhq.hu
Date: Wed, 28 Dec 2005 23:42:46 -0800
Subject: [PATCH] (partially) support QuickTime sound atom version 2


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17284 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-02 06:56:22 +00:00
nicodvb
55fafe1c3b search next sequence_header untile a valid one is found
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17278 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-31 17:47:54 +00:00
nicodvb
c00dfe452b simplification: don't use residual_buffer, but prepend remainder of current frame to next one (needed for future work; init frame->pos to 0 in reorder_frame(); fix: don't go beyond last frame in flush_buffer()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17272 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-30 18:46:56 +00:00
rathann
8ae9b08191 fix dvdread version macro
patch by Emanuele Giaquinta (emanuele.giaquinta at gmail dot com)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17258 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-28 12:34:20 +00:00
rtognimp
c2c91b66bc Add "application/x-mms-framed" for ASF
Fixes http://64.34.147.109:3690/CFMJAM, closes bug #420
Fix by Rado R. ||| r_a_d_o |a| hotmail | com |||


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17236 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-24 18:17:39 +00:00
rtognimp
228f0abcf4 Typo in ASF demuxer selection by name (it's 'asf', not 'asv')
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17233 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-24 12:48:01 +00:00
henry
c0e54fd248 malloc padding to avoid access beyond allocated memory
Credits to Mikulas Patocka (mikulas at artax karlin mff cuni cz)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17227 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-19 19:38:28 +00:00
reimar
06ed3c2b57 calculate framesize for raw RGB and BGR.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17220 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-18 11:57:25 +00:00
reimar
f8c0e0cf04 fix crash with invalid -vid and no audio stream
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17219 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-18 11:55:47 +00:00
reimar
f44b5a9e96 include fastmemcpy.h before stream.h, so it is used for the stream_read
function, too. Gives a small speedup for e.g. high bandwidth MPEG2


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17201 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-17 10:46:48 +00:00
henry
31a9cfb68a remove now useless YV12 plane swap hack, patch by Luc Gallant lucgallant at gmail com
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17200 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-16 23:04:20 +00:00
nicodvb
3d91be0230 fix compilation when dvdkit and dvdread are not available
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17192 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-14 21:52:41 +00:00
wanderer
a8235fce3f make demuxer seek and close functions return void, patch by Dominik Mierzejewski
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17175 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-11 17:21:02 +00:00
reynaldo
ea63d7c7a5 Harcoded eng strings on libmpdemux/network.c to help_mp
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17154 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-10 01:40:18 +00:00
rtognimp
bda32bc73a Move audio packets reordering from codec interface to demuxers for real
files (old and new format), pass only real extradata to the codec
Enable cook codec from lavc, prefer lavc codecs for 14_4 and 28_8
formats. Disable internal 28_8, it's broken now and will be removed soon


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17150 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-09 16:25:37 +00:00
rathann
355bc2f7c1 fix
pnm.c:228: warning: implicit declaration of function 'usec_sleep'
realrtsp/rtsp.c:184: warning: implicit declaration of function 'usec_sleep'
ad_acm.c:149: warning: implicit declaration of function 'usec_sleep'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17093 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-05 01:27:32 +00:00
rathann
9d4d23cad6 fix
muxer_mpeg.c:2315: warning: implicit declaration of function 'mp_get_mp3_header'
muxer_mpeg.c:2339: warning: implicit declaration of function 'a52_syncinfo'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17092 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-05 01:26:09 +00:00
rathann
d5505c8f9e fix
demux_ogg.c:371: warning: implicit declaration of function '_ilog'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17091 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-05 01:25:31 +00:00
rathann
7daf67e81b fix
stream_livedotcom.c:70: warning: assignment makes pointer from integer without a cast
stream_livedotcom.c:77: warning: passing argument 1 of 'lseek' makes integer from pointer without a cast
stream_livedotcom.c:78: warning: passing argument 1 of 'lseek' makes integer from pointer without a cast
stream_livedotcom.c:84: warning: passing argument 1 of 'read' makes integer from pointer without a cast
stream_livedotcom.c:96: warning: control reaches end of non-void function


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17090 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-05 01:24:27 +00:00
rfelker
c4f58eee9e muxer_lavf MUST be disabled by default until someone adds AVParser
support to it. Otherwise users will generate files with totally
nonsensical pts if they use B frames! (And they are already doing so
-- see mplayer-users list!)

If anyone wants to volunteer to add AVParser support, go right ahead!
But until then, do not remove this check. :)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17080 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-02 19:43:36 +00:00
nicodvb
6ac24fccd8 fixed wrong telecine trf pattern; fall back to mpeg2 when user specifies unknown format
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17067 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-30 21:45:32 +00:00
reynaldo
2ae5a0788d Clean up some muxer messages, patch by Corey Hickey bugfood-ml AT -fatooh/org- , small fixes by me
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17066 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-29 22:04:57 +00:00
albeu
fcd2d08125 Add support to get the list of files from a file containing one filename
per line. Patch from devik (devik .at. cdi .dot. cz).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17051 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-26 17:10:17 +00:00
albeu
bab80ce123 Fix URL escaping to correctly handle URL containing an ip6 address or
escaped special chars like & or ;


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17049 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-26 15:57:39 +00:00
diego
c98a02849f When it comes to CD/DVD handling bsdi has a linux CD/DVD compatibility
library, use this to fix building on this (weird ;)) system.
patch by Steven M. Schultz sms __ at __ 2BSD __ dot __ COM


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17045 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-25 02:06:47 +00:00
rtognimp
7d81d69dd5 Ignore OPTIONS rtsp command during playback. Fixes
rtsp://mms.sonix.de/universal/rock/apocalyptica_lifeburns_300.rm?start=0
(playback stopped after 82 sec)
Patch by adland


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17033 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-22 19:24:09 +00:00
nicodvb
7a8f8317fd buffering in the muxer layer; patch by Corey Hickey (bugfood-ml ad fatooh punctum org) plus small fixes by me
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17024 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-21 22:53:14 +00:00
diego
36e1974be0 Unify include path handling, -I.. is in CFLAGS.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17013 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-18 14:39:25 +00:00
rathann
06ac97d79f Simplify weird code. ;)
Approved by Diego.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16984 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-13 20:25:06 +00:00
reynaldo
8318fcd06b [TRIVIAL] More translatables to help_mp and printfs to mp_msg on libmpdemux
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16968 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-10 21:33:12 +00:00
reimar
cf440b521e Do not hang forever when the card delivers no new data.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16963 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-10 20:32:47 +00:00
reimar
0a85f24278 implement norm switching, which was already documented??
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16962 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-10 20:31:27 +00:00
rtognimp
59235ce33e Add another content-type for aac audio in shoutcast streams
Fixes http://www.digitallyimported.com/aacplus/goapsy.pls


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16949 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-08 22:07:53 +00:00
faust3
7b7c8c7125 save us from #ifndef hell
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16941 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-06 21:09:07 +00:00
faust3
0538ed8780 make it optionally possible to compile MPlayer with libcdio instead of libcdparanoia
patch by Erik Lunchpail <erik_27can at yahoo.com>
base on patch by Rocky Bernstein <rocky at panix.com>
minor modification by myself


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16936 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-06 17:42:20 +00:00
nicodvb
f57a65dd86 fixed possible uint8 overflow; assign progid to the newly created pmt
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16935 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-06 16:17:17 +00:00
reimar
949b479e3c fix typos: aslo->also, falback->fallback (they were just too annoying *g*)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16933 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-06 16:10:39 +00:00
reimar
78f77afc33 Fix bugs/crash introduced by translation patch
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16931 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-06 15:25:08 +00:00
reimar
ee37c78b40 fix cdda://n syntax: do not hang when n > nr_tracks and play only track n,
not all after (unfortunately, cdda://n- does not work, use e.g. cdda://n-99999).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16927 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-06 14:17:51 +00:00
reimar
fb99b3a5c4 estimate total time also for audio-only files.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16926 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-06 14:14:53 +00:00
rtognimp
1cfe5263b1 Use correct demuxer type for aac in shoutcast streams
(content-type="audio/aacp").
Fixes http://160.79.128.40:7040 (it does not work with internal faad)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16918 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-05 15:32:50 +00:00
reimar
4e76145381 Speex support. Seeking and pts generation does not work.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16916 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-05 11:58:25 +00:00
reimar
eeaa5eb45f set cdda paranoia default to 0 since e.g. cdda://2 breaks otherwise.
this was the default before, too, since a function call was missing and
thus the paranoia setting was ignored


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16915 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-05 11:40:06 +00:00
lorenm
316bb1d44c sort timestamps instead of assuming conventional B-frame order. (fixes x264 B-pyramid)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16913 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-05 04:56:23 +00:00
ptt
1256435423 Changed MSGTR_MPDEMUX_URL_MallocFailed to MSGTR_MemAllocFailed (msg defined two times in help_mp-en.h)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16909 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-05 00:55:34 +00:00
ptt
80f36a7449 Changed MSGTR_MPDEMUX_ASF_MallocFailed to MSGTR_MemAllocFailed (msg defined two times inhelp_mp-en.h)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16908 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-05 00:53:33 +00:00
ptt
f967a47371 Changed MSGTR_MPDEMUX_MMST_MallocFailed to MSGTR_MemAllocFailed (msg defined two times inhelp_mp-en.h)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16907 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-05 00:51:36 +00:00
ptt
35ca56387b changes from MSGTR_MPDEMUX_AIALSA1X_* to MSGTR_MPDEMUX_AIALSA_* since they are the same messages
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16906 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-05 00:48:43 +00:00
reimar
754c2b98ef Fix two (loosely) related bugs: massive A-V desync with -audiofile (bugzilla
bug #375, sh_audio->delay must only be set when seeking, not at every packet)
and not switching to the next file when seeking hits eof.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16885 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-01 16:12:53 +00:00
nicodvb
af89106f3f more precise seeking based on calculated average video bitrate; works quite well in case of a TS with only 1 video stream
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16884 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-10-31 23:38:32 +00:00
reynaldo
8970a281df libmpdemux translatables to help_mp part 1 / mp_msg calls / try 2
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16883 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-10-31 23:37:41 +00:00
reimar
2912984517 move resync_audio_stream after seeking to demuxer.c
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16878 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-10-30 09:19:05 +00:00
reimar
9e15dfe7fc Provide DEMUXER_CTRL_GET_TIME_LENGTH and DEMUXER_CTRL_GET_PERCENT_POS.
Might need some more fine-tuning.
together with rev. 1.318 of mencoder.c fixes bug #116


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16877 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-10-30 09:13:32 +00:00
ods15
997fc285dc add a \n after whole cache fill.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16871 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-10-27 06:55:05 +00:00