Commit Graph

2207 Commits

Author SHA1 Message Date
rtogni a743f34200 Remove useless assignements, thanks reimar for noticing them
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20204 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-14 00:43:28 +00:00
reimar aa5a9bc123 Cosmetics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20182 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-12 17:21:15 +00:00
reimar 280c746919 strncpy->strlcpy
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20181 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-12 17:19:43 +00:00
reimar 74890695e8 Remove useless return; at end of function
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20180 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-12 17:19:10 +00:00
reimar 7ef8e59e30 Simplify demux_mkv_get_sub_lang
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20179 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-12 17:18:20 +00:00
ptt 07198ca3ae modifications pointed out by reimar doffinger
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20174 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-12 14:11:39 +00:00
rtogni 1e418cb5f1 Remove old hack to search for .ar and VIDO, we know where they are
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20165 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-11 21:19:24 +00:00
ptt 68613bbee7 added OSD audio switching visualization
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20162 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-11 17:25:46 +00:00
reimar d0947a5bb7 More possible memleaks.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20161 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-11 15:57:51 +00:00
reimar de216f1950 Avoid memleak on error while reading attachments or multiple
MATROSKA_ID_FILEDATA parts.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20160 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-11 15:47:37 +00:00
diego 155d28bf01 Remove duplicate min/max macro definition.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20159 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-11 15:28:54 +00:00
rtogni 25b5b62319 Allows up to 8 bytes of extradata for cmsg24
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20150 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-10 22:15:01 +00:00
rtogni d64ad3f125 Fix extradata lenght when adding cmsg24 data
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20149 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-10 21:37:06 +00:00
rtogni c1fff74704 Cleanup: remove some old commented out skips
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20148 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-10 21:29:15 +00:00
reimar 030b28b3ee Fix misdetection of http://samples.mplayerhq.hu/tta/tivo_misdetect.tta as TiVo file
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20147 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-10 19:21:33 +00:00
reimar 6a4cc21801 Simplify (by using realloc with NULL parameter) and refactor code to grow
array in 32-increments


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20146 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-10 15:01:11 +00:00
rtogni af56e2e82e Fix problems on live streams with huge timestamps, causing overflows and
negative pts values. It also changes pts to double, since there is no 
enough precision in float to represent 32bit uint timestamps.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20145 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-09 20:00:02 +00:00
reimar bdc8d80e9b Free track->language before assigning new value
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20143 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-09 19:10:36 +00:00
reimar 5240b8bf98 Missing (in close function)/misplaced free for track structure itself.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20142 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-09 18:56:16 +00:00
reimar ccff4a6164 Free track data if error occurs while reading trackentry
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20141 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-09 18:48:55 +00:00
reimar 89ca5fd9b7 Free track encodings on error or demuxer close
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20139 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-09 18:28:58 +00:00
reimar 37f549101b replace malloc+memset by calloc
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20136 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-09 18:00:54 +00:00
reimar 3b81347247 Remove cast of realloc result missed in last patch
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20135 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-09 17:48:43 +00:00
reimar 4f58754e78 Remove unneeded casts for malloc/realloc calls
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20134 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-09 17:41:37 +00:00
rathann 19f74e95b5 Fixes
mpeg_packetizer.c:145: warning: no return statement in function returning non-void

Approved by Nico.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20122 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-08 22:43:29 +00:00
reimar 611f88ab5b WavPack files contain a complete, valid RIFF tag, so use extension (.wv)
to give libavformat a chance before our audio demuxer


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20109 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-08 12:19:08 +00:00
reimar fa92a6aad5 Simplify: replace malloc + memset 0 by calloc
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20078 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-05 21:31:21 +00:00
reimar 11e7ea9df4 Fix demux_demuxers seeking if the video demuxer does not set
demuxer->video->pts (e.g. lavf).
Previous code would start audio from beginning.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20077 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-05 21:28:55 +00:00
reimar 9b128fa2e4 Implement absolute and percent-based seek
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20076 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-05 21:25:22 +00:00
nicodvb c5cbf5efe6 Reset demuxer->sub (consistently with audio and video) after seeking and at the end
of demux_mpg_open() to prevent ghost packets. Patch by Olaf Mandel - olaf mandel name.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20011 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-01 09:33:23 +00:00
eugeni f7e89b57fa Add matroska v2 (SimpleBlock) support.
Patch by Federico Menarini (federico d menarini a gmail d com).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19983 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-25 21:17:43 +00:00
nicodvb bd40e0ea1d interpolate real fps of dvr-ms files using the extended stream properties.
Patch by John Donaghy - johnfdonaghy gmail com


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19967 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-24 15:19:48 +00:00
reimar 8e6272e832 Make fill_buffer function check for stream eof, fixes hang at eof (bug #580)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19966 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-24 14:26:31 +00:00
ods15 b45efb0eeb simplifications, any error from libnut is fatal
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19964 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-23 21:05:28 +00:00
ods15 dcc0b8e177 sync to new libnut
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19963 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-23 18:48:18 +00:00
reimar 32254e3cb6 Missing part of previous patch to demux_real.c (revision 19958)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19960 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-23 17:00:09 +00:00
reimar b6d6af240c int->unsigned to avoid crash to sign extension, partially fixes bug #580
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19958 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-23 16:43:57 +00:00
ods15 978ec64191 better rounding for audio_delay_fix in muxer_avi.c
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19932 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-22 10:27:17 +00:00
reimar b4056ef407 Try .mxf with libavformat first, works around a too greedy mpeg-demuxer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19930 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-22 09:48:41 +00:00
nicodvb bc996f4dee demuxer->movi_end is updated after ds_fill_buffer(),
this in demux_mpg_probe() end_seq_start must be assigned
after ds_fill_buffer


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19902 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-18 22:32:51 +00:00
ods15 2f07a40d8d conditional declerations are unnecessary
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19868 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-17 10:22:23 +00:00
ods15 1b8971d82e Add demux_nut to MPlayer repo
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19867 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-17 09:32:28 +00:00
eugeni 13387709ef Fix r19815: mkv_d->duration could be assigned an uninitialized value.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19818 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-13 02:02:17 +00:00
eugeni fa6bc3aa4f Fix seeking in Matroska files with non-default TimecodeScale value.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19817 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-12 21:45:06 +00:00
eugeni ee0ac67094 Fix block duration calculation in mkv demuxer.
According to specs, BlockDuration value is based on TimecodeScale.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19816 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-12 21:40:01 +00:00
eugeni 3f1e7dd9a8 Fix movie duration calculation in case when TimecodeScale element comes after
Duration element.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19815 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-12 21:33:10 +00:00
diego c7ee94590a Support for variable fps OGM files, blessed by Moritz.
patch by Sergey Khlutchin, Elphel, Inc


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19808 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-12 09:00:10 +00:00
reimar a498ea8eb8 Avoid division by zero DEMUXER_CTRL_GET_PERCENT_POS with only one frame by just
returning DONTKNOW. A better formula to calculate position would probably be a better
fix though.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19800 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-11 19:01:20 +00:00
rtogni 28d3865047 Use better resolution for pts computation.
Fixes desync in Real live streams with huge pts values


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19701 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-05 21:53:09 +00:00
nicodvb 244d6ad8e8 in fixup_vorbis_wf() set to 0 bitrates indicated as -1 (unspecified, according to the specs); patch by Andrew Savchenko - Bircoph list ru
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19700 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-05 20:18:42 +00:00