Commit Graph

2458 Commits

Author SHA1 Message Date
reimar 48eb95537d Fix number of rows in interlaced mode.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22042 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-28 13:51:24 +00:00
reimar b9b7060e60 10l, confused current "frame" with canvas width.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22040 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-28 11:02:52 +00:00
nicodvb 25918a8b31 set has_valid_timestamps and corresponding first and final pts only after
having checked that at the beginning, at the middle and at the end of the
stream timestamps don't reset and that they seem to progress (almost-) linearly;
additionally probe those timestamps only when the stream type is file and it's seekable,
so all other stream types (especially network ones) won't waste time trying to seek
and possibly slowing down detection.
Seeking is not negatively affected by these changes.
Patch by Christian Aistleitner (zaek7q gmx net) reworked by me.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22039 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-28 10:45:34 +00:00
reimar fec3b1e82e Hack: use refmode == 1 instead of == 0, as browsers behave like this
and buggy files like http://samples.mplayerhq.hu/GIF/broken-gif/CLAIRE.GIF
rely on this.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22038 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-28 10:34:11 +00:00
reimar c518d68f25 Set sh_video->bih->biWidth properly, fixes decoding after latest dec_video.c change
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22037 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-28 09:53:42 +00:00
rtogni edf1fb46d2 Call real_fix_timestamp() after seeking, to avoid video freezing
because of wrong timestamps. Fixes seek_sample2.rmvb and others.
Patch by LR ))) hephooey ))(( gmail )( com (((


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22036 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-27 22:34:27 +00:00
reimar 92258be85a Simplify and make lzo decompression code more similar to zlib one.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22029 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-27 14:54:45 +00:00
reimar d7da0ebc20 Forgotten free on error
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22028 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-27 14:52:18 +00:00
reimar d8f2eaca08 *dest = malloc (*size); is useless directly before *dest = realloc (*dest, *size);
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22026 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-27 14:45:52 +00:00
diego ef3b7add5f Remove comment printed by -demuxer help, it belongs in the copyright header.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22015 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-25 17:48:38 +00:00
reimar fa7d28e854 Remove ff_gcd prototype and include avutil.h instead where it is defined.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22013 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-25 10:49:43 +00:00
rtogni 2669d9536a Use interleaver id to select the correct interleaver instead of guessing
it from the codec id.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22007 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-24 21:20:08 +00:00
rtogni e77fbf0bd7 Use interleaver id to select the correct interleaver instead of guessing
it from the codec id.
Fixes gittin_13.ra


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22005 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-24 15:05:42 +00:00
nicodvb ef29ff34ff better autodetection of framerate in case of h264; it works correctly with b-frames.
Patch by Eugen Hoyos (cehoyos ag or at)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22001 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-23 22:26:13 +00:00
nicodvb 68f75d788f substream 0x75 doesn't seem to be a valid vc1 stream, after all; removed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21997 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-22 22:29:54 +00:00
nicodvb 3253bba2b3 set priv->last_pts to the pts read only if the pts was really read; patch by zaek7q gmx net (Christian Aistleitner)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21996 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-22 22:24:50 +00:00
diego 2e66db0c4a Discard -Wdeclaration-after-statement warning.
patch by Carl Eugen Hoyos, cehoyos ag.or at


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21992 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-21 23:21:50 +00:00
reimar 8e374ff809 Instead of printing a useless "sig11 coming soon" message, just abort parsing
in the hope of still saving things (helps with at least
http://sam.zoy.org/zzuf/lol-mplayer.wmv).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21986 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-21 18:29:18 +00:00
reimar 75282a6a83 Sanity-check sh_video->bih->biSize
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21985 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-21 18:22:07 +00:00
reimar 4b9ddc69a0 Simplify by using av_codec_get_id and include riff.h only in demux_lavf.c
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21984 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-21 15:44:58 +00:00
reimar 3ccc6712e3 Forgotten CodecTag -> AVCodecTag
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21980 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-21 10:33:34 +00:00
reimar abb0510502 Fix compilation after lavf changes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21979 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-21 10:17:40 +00:00
reimar cb47a72a44 support -ffourcc with -of lavf
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21978 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-21 10:10:07 +00:00
nicodvb 2abbb9c863 in h264_parse_sps() reuse mp_unescape03()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21971 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-20 13:46:17 +00:00
nicodvb 6d708c31b6 vc1 probing code: if sh_video->bih can't be callocated exit
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21970 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-20 13:14:09 +00:00
nicodvb b5d12d6e0f in vc1 probing code, all packets before the first sequence header must be skipped, not read
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21969 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-20 13:10:40 +00:00
nicodvb 8823921db8 removed unused variables; replaced wrong call to realloc() with calloc() in vc1 probing code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21968 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-20 13:06:17 +00:00
nicodvb 488013915f decode vc1 sequence header and frame it in video_read_frame();
it doesn't work yet, but it permits debugging and development to Kostya



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21967 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-20 12:17:22 +00:00
nicodvb fa90811f58 demux vc1 (stream id 0x1Fd with 0x55 <= substream id <= 0x5F in the pes_extension_2 payload)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21966 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-20 12:13:50 +00:00
nicodvb 58c3d666eb added function to parse vc1 sequence header
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21965 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-20 12:04:20 +00:00
reimar c70d547ea6 Compile fix: LE_* -> AV_RL*
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21963 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-19 23:14:57 +00:00
nicodvb 34ef7517eb 1000l; fixed wrong operator precedence
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21952 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-17 21:42:04 +00:00
nicodvb 8397554a2a unified creation of sh_audio and sh_video is ts_add_stream; patch by elupus
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21947 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-17 00:12:35 +00:00
nicodvb 375fe84da6 in evo files [e]ac3 substreams range from 0xc0 to 0xcf
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21945 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-16 22:50:47 +00:00
reimar 3d834fb592 Interlaced gif support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21940 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-16 07:12:32 +00:00
reimar 410b243885 Change some types to uint8_t where appropriate
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21939 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-16 07:05:28 +00:00
reimar e6c460e462 "Cosmetics" Introduce a memcpy function doing both transparent
and non-transparent copy.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21938 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-16 07:01:53 +00:00
nicodvb 9c56f01564 one more #if 1 removed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21937 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-15 23:03:45 +00:00
nicodvb 12233b5063 removed useless #if1s added too long time ago
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21936 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-15 21:39:30 +00:00
nicodvb 6443cc76f5 in EVO files substreams 0xC0 of private streams 0xBD contain [e]ac3.
A more proper range will be committed when specs begin to appear;
for the time being enjoy the audio stream


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21935 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-15 21:21:42 +00:00
diego 86756e67b0 demux_rtp_codec.cpp💯 `INT_MAX' undeclared (first use this function)
patch by Carl Eugen Hoyos, cehoyos ag.or at


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21929 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-15 04:57:43 +00:00
reimar cc05fc22e8 Cosmetics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21914 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-13 12:56:42 +00:00
reimar ba63e7b28d Implement gif transparency
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21913 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-13 12:56:02 +00:00
reimar 79cc33a851 Fix: refmodes 2 and 3 leave useref unchanged
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21912 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-13 12:46:27 +00:00
reimar 497403d31f Cosmetics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21911 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-13 12:39:13 +00:00
reimar 5b7eb989f2 Implement refmode == 2 in gif demuxer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21910 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-13 12:37:53 +00:00
reimar 9cfea7d129 Partially support gif using "reference" images
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21909 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-13 12:19:42 +00:00
reimar 18fe1c0613 memset + malloc -> calloc
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21908 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-13 12:05:18 +00:00
reimar d765e163b8 Cast SWidth/SHeight to uint16_t, since that's what they actually are.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21905 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-13 11:49:20 +00:00
reimar f6a9b356cd Forgot to adjust length of memset
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21904 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-13 11:46:43 +00:00