summaryrefslogtreecommitdiffstats
path: root/libmpdemux
Commit message (Collapse)AuthorAgeFilesLines
* Do not read beyond end of data chunk if chunk_size is set.reimar2007-02-041-1/+6
| | | | | | | Sample: http://samples.mplayerhq.hu/A-codecs/wavpcm/ahh.wav git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22121 b3059339-0415-0410-9bf9-f77b7e298cf2
* demux_mpg_probe() seek to the initial position before returning - patch by ↵nicodvb2007-02-031-0/+2
| | | | | | reimar git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22112 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed unused variablesnicodvb2007-02-031-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22106 b3059339-0415-0410-9bf9-f77b7e298cf2
* mf demuxer only works with mf:// urls, so check for that.reimar2007-02-011-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22101 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make mkv demuxer use ffmpeg LZO as well.reimar2007-01-311-17/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22099 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support 16bit bigendian PCM audio from libavformatreimar2007-01-301-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22076 b3059339-0415-0410-9bf9-f77b7e298cf2
* reduced verbositynicodvb2007-01-291-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22068 b3059339-0415-0410-9bf9-f77b7e298cf2
* 5l, check that the codec type detected by ts_detect_streams() is actually ↵nicodvb2007-01-291-1/+1
| | | | | | audio before fixing it in the array git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22067 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix audio type when ts_detect_streams detects that a private1 stream is ↵nicodvb2007-01-291-0/+3
| | | | | | actually ac3 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22066 b3059339-0415-0410-9bf9-f77b7e298cf2
* sanity checks during codec detection; also reset demuxer->stream->eofnicodvb2007-01-281-1/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22059 b3059339-0415-0410-9bf9-f77b7e298cf2
* added code to scan the video stream to search the actual video codec used;nicodvb2007-01-281-0/+30
| | | | | | | | | | triggered only if requested by the user with option -psprobe. Evo files require this option because H264 is stored like MPEG2 without using the PSM git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22055 b3059339-0415-0410-9bf9-f77b7e298cf2
* include math.h for fabsf()nicodvb2007-01-281-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22054 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: reindentation and braces removalnicodvb2007-01-281-6/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22053 b3059339-0415-0410-9bf9-f77b7e298cf2
* moved scoreboarding code to 2 separate functions (update_stats() and ↵nicodvb2007-01-281-28/+41
| | | | | | clear_stats()) to be reused next git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22052 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix number of rows in interlaced mode.reimar2007-01-281-7/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22042 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l, confused current "frame" with canvas width.reimar2007-01-281-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22040 b3059339-0415-0410-9bf9-f77b7e298cf2
* set has_valid_timestamps and corresponding first and final pts only afternicodvb2007-01-281-46/+122
| | | | | | | | | | | | | | 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
* Hack: use refmode == 1 instead of == 0, as browsers behave like thisreimar2007-01-281-0/+7
| | | | | | | | 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
* Set sh_video->bih->biWidth properly, fixes decoding after latest dec_video.c ↵reimar2007-01-281-5/+2
| | | | | | change git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22037 b3059339-0415-0410-9bf9-f77b7e298cf2
* Call real_fix_timestamp() after seeking, to avoid video freezing rtogni2007-01-271-3/+13
| | | | | | | | 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
* Simplify and make lzo decompression code more similar to zlib one.reimar2007-01-271-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22029 b3059339-0415-0410-9bf9-f77b7e298cf2
* Forgotten free on errorreimar2007-01-271-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22028 b3059339-0415-0410-9bf9-f77b7e298cf2
* *dest = malloc (*size); is useless directly before *dest = realloc (*dest, ↵reimar2007-01-271-1/+1
| | | | | | *size); git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22026 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove comment printed by -demuxer help, it belongs in the copyright header.diego2007-01-251-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22015 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove ff_gcd prototype and include avutil.h instead where it is defined.reimar2007-01-251-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22013 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use interleaver id to select the correct interleaver instead of guessing rtogni2007-01-241-23/+21
| | | | | | | it from the codec id. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22007 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use interleaver id to select the correct interleaver instead of guessing rtogni2007-01-241-8/+7
| | | | | | | | it from the codec id. Fixes gittin_13.ra git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22005 b3059339-0415-0410-9bf9-f77b7e298cf2
* better autodetection of framerate in case of h264; it works correctly with ↵nicodvb2007-01-231-2/+8
| | | | | | | | | 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
* substream 0x75 doesn't seem to be a valid vc1 stream, after all; removednicodvb2007-01-221-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21997 b3059339-0415-0410-9bf9-f77b7e298cf2
* set priv->last_pts to the pts read only if the pts was really read; patch by ↵nicodvb2007-01-221-1/+6
| | | | | | zaek7q gmx net (Christian Aistleitner) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21996 b3059339-0415-0410-9bf9-f77b7e298cf2
* Discard -Wdeclaration-after-statement warning.diego2007-01-211-1/+1
| | | | | | | patch by Carl Eugen Hoyos, cehoyos ag.or at git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21992 b3059339-0415-0410-9bf9-f77b7e298cf2
* Instead of printing a useless "sig11 coming soon" message, just abort parsingreimar2007-01-211-1/+4
| | | | | | | | 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
* Sanity-check sh_video->bih->biSizereimar2007-01-212-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21985 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify by using av_codec_get_id and include riff.h only in demux_lavf.creimar2007-01-212-14/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21984 b3059339-0415-0410-9bf9-f77b7e298cf2
* Forgotten CodecTag -> AVCodecTagreimar2007-01-211-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21980 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix compilation after lavf changesreimar2007-01-212-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21979 b3059339-0415-0410-9bf9-f77b7e298cf2
* support -ffourcc with -of lavfreimar2007-01-212-1/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21978 b3059339-0415-0410-9bf9-f77b7e298cf2
* in h264_parse_sps() reuse mp_unescape03()nicodvb2007-01-201-27/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21971 b3059339-0415-0410-9bf9-f77b7e298cf2
* vc1 probing code: if sh_video->bih can't be callocated exitnicodvb2007-01-201-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21970 b3059339-0415-0410-9bf9-f77b7e298cf2
* in vc1 probing code, all packets before the first sequence header must be ↵nicodvb2007-01-201-1/+1
| | | | | | skipped, not read git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21969 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed unused variables; replaced wrong call to realloc() with calloc() in ↵nicodvb2007-01-201-3/+1
| | | | | | vc1 probing code git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21968 b3059339-0415-0410-9bf9-f77b7e298cf2
* decode vc1 sequence header and frame it in video_read_frame();nicodvb2007-01-201-0/+73
| | | | | | | | 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
* demux vc1 (stream id 0x1Fd with 0x55 <= substream id <= 0x5F in the ↵nicodvb2007-01-201-2/+37
| | | | | | pes_extension_2 payload) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21966 b3059339-0415-0410-9bf9-f77b7e298cf2
* added function to parse vc1 sequence headernicodvb2007-01-202-0/+116
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21965 b3059339-0415-0410-9bf9-f77b7e298cf2
* Compile fix: LE_* -> AV_RL*reimar2007-01-191-13/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21963 b3059339-0415-0410-9bf9-f77b7e298cf2
* 1000l; fixed wrong operator precedencenicodvb2007-01-171-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21952 b3059339-0415-0410-9bf9-f77b7e298cf2
* unified creation of sh_audio and sh_video is ts_add_stream; patch by elupusnicodvb2007-01-171-70/+75
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21947 b3059339-0415-0410-9bf9-f77b7e298cf2
* in evo files [e]ac3 substreams range from 0xc0 to 0xcfnicodvb2007-01-161-2/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21945 b3059339-0415-0410-9bf9-f77b7e298cf2
* Interlaced gif supportreimar2007-01-161-2/+20
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21940 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change some types to uint8_t where appropriatereimar2007-01-161-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21939 b3059339-0415-0410-9bf9-f77b7e298cf2
* "Cosmetics" Introduce a memcpy function doing both transparentreimar2007-01-161-15/+21
| | | | | | | and non-transparent copy. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21938 b3059339-0415-0410-9bf9-f77b7e298cf2
* one more #if 1 removednicodvb2007-01-151-2/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21937 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed useless #if1s added too long time agonicodvb2007-01-151-4/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21936 b3059339-0415-0410-9bf9-f77b7e298cf2
* in EVO files substreams 0xC0 of private streams 0xBD contain [e]ac3.nicodvb2007-01-151-1/+2
| | | | | | | | 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
* demux_rtp_codec.cpp:100: `INT_MAX' undeclared (first use this function)diego2007-01-151-0/+1
| | | | | | | patch by Carl Eugen Hoyos, cehoyos ag.or at git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21929 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmeticsreimar2007-01-131-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21914 b3059339-0415-0410-9bf9-f77b7e298cf2
* Implement gif transparencyreimar2007-01-131-0/+18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21913 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix: refmodes 2 and 3 leave useref unchangedreimar2007-01-131-2/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21912 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmeticsreimar2007-01-131-7/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21911 b3059339-0415-0410-9bf9-f77b7e298cf2
* Implement refmode == 2 in gif demuxerreimar2007-01-131-4/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21910 b3059339-0415-0410-9bf9-f77b7e298cf2
* Partially support gif using "reference" imagesreimar2007-01-131-1/+17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21909 b3059339-0415-0410-9bf9-f77b7e298cf2
* memset + malloc -> callocreimar2007-01-131-2/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21908 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cast SWidth/SHeight to uint16_t, since that's what they actually are.reimar2007-01-131-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21905 b3059339-0415-0410-9bf9-f77b7e298cf2
* Forgot to adjust length of memsetreimar2007-01-131-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21904 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify gif demuxer by using memcpy_picreimar2007-01-131-8/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21903 b3059339-0415-0410-9bf9-f77b7e298cf2
* One more bounds check, though IMO the gif lib really should do this.reimar2007-01-131-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21902 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplifyreimar2007-01-131-2/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21901 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix crash for gif images that have Top or Left setreimar2007-01-131-5/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21900 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix invalid read for gifs with a palette for less than 256 colorsreimar2007-01-131-1/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21899 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move global variables in gif demuxer into priv structreimar2007-01-131-21/+22
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21898 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: typo fix pallete --> palettediego2007-01-131-7/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21894 b3059339-0415-0410-9bf9-f77b7e298cf2
* Frametime was being read from the wrong offset, comparediego2007-01-131-1/+1
| | | | | | | | http://www.onicos.com/staff/iz/formats/gif.html#gceb patch by John Koleszar, jkoleszar on2 com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21893 b3059339-0415-0410-9bf9-f77b7e298cf2
* add support for avc1 in X-QT over RTSPgpoirier2007-01-121-0/+21
| | | | | | | patch by Carl Eugen Hoyos cehoyos at ag.or.at git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21889 b3059339-0415-0410-9bf9-f77b7e298cf2
* dont write an index and dont use memory to build one if -noidx is specifiedmichael2007-01-081-2/+2
| | | | | | | ... maybe this should use its own option though instead of using -noidx ? git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21858 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify demux_ogg to use the sub_clear_text and sub_add_text functions.reimar2007-01-061-40/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21846 b3059339-0415-0410-9bf9-f77b7e298cf2
* Subtitle handling cleanup: factor out code for parsing embedded subtitlesreimar2007-01-062-168/+15
| | | | | | | and adding and removing of lines in subtitle struct into subreader.c. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21845 b3059339-0415-0410-9bf9-f77b7e298cf2
* Include "internal" libavformat/riff.h also when dynamic libavformat is usedreimar2007-01-062-16/+2
| | | | | | | | instead of duplicating typedefs and function prototypes in already three different places. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21840 b3059339-0415-0410-9bf9-f77b7e298cf2
* Include libavformat/riff.h when building with static libavformat andreimar2007-01-061