1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 17:12:36 +00:00
Commit Graph

2698 Commits

Author SHA1 Message Date
diego
1c12e78686 Fix warnings:
demux_mkv.c: In function 'demux_mkv_read_chapters':
demux_mkv.c:1299: warning: unused variable 'mkv_d'
demux_mkv.c: In function 'handle_subtitles':
demux_mkv.c:2740: warning: unused variable 'mkv_d'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24219 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-26 20:46:38 +00:00
reimar
8138eb7b5f Split lschunks function further, it is simply too huge to do any useful changes (e.g. for
more proper support for multi-codec tracks).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24202 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-25 18:09:00 +00:00
diego
6f33963721 warning fix:
demux_mov.c:44: warning: redundant redeclaration of 'vo_sub'
../libvo/sub.h:64: warning: previous declaration of 'vo_sub' was here


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24192 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-25 16:56:43 +00:00
diego
a0c2348a70 Remove redundant variable declarations.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24167 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-25 12:12:31 +00:00
diego
6f75e1216c Remove redundant variable declaration.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24164 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-25 12:02:16 +00:00
reimar
4e19d8fe2f Add missing pixelformat conversion function prototype
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24144 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-24 20:59:55 +00:00
diego
4225bf59d4 Remove silly #ifdef around the complete file.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24138 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-24 11:06:07 +00:00
cehoyos
374de7f61f Fix compilation of live555 support after FFmpegs r10173.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24123 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-22 23:37:06 +00:00
reimar
80ef41dccf We can support SEEK_END seeks only when stream->end_pos is known
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24105 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-20 09:28:44 +00:00
reimar
08dd16470b Add support for AVSEEK_SIZE in demux_lavf
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24104 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-20 09:27:47 +00:00
reimar
afe879eb99 Do not seek to an invalid position.
Patch by {emild [at] cs technion ac il}


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24102 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-19 21:22:27 +00:00
reimar
185bc3320f When a new subtitle stream becomes available check if it is the one that
was requested by the user and set up sub->id and sub->sh accordingly.
Fixes -slang and -sid with DVD subtitles (basically only 'j' during playback
could make them show). This was broken by r23786.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24042 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-09 10:26:00 +00:00
reimar
483453ff8b Fix detection of xan audio. -noidx or -forceidx still is necessary
to detect audio at all.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23985 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-01 09:01:28 +00:00
michael
fad572fc72 get rid of this idiotic i_certify_that_my_video_stream_does_not_use_b_frames
muxer_lavf can now generate correct files with b frames as long as the timestamps
provided to it are correct (they should be with lavc encoding, expect trouble with
stream copy though)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23976 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-31 17:28:47 +00:00
michael
8067c7b5ca make muxer store the provided timestamps
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23975 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-31 17:24:53 +00:00
reimar
3b9d93025f Use the standard inline instead of __inline
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23935 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-30 13:58:45 +00:00
reimar
43f83d25be Another missed case-range
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23934 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-30 13:55:51 +00:00
reimar
73e967ea97 Do not use gnu case-range extension if it's easy to avoid
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23933 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-30 13:54:15 +00:00
diego
22fc24fe56 cosmetics: misc typo fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23893 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-28 14:28:38 +00:00
reimar
f322399e38 Remove extern index_mode, it is already in demuxer.h
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23886 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-27 21:00:33 +00:00
reimar
5bd192c77d Make sure fformat is set before use
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23885 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-27 20:25:43 +00:00
reimar
958fc672cb Remove some unneeded extern variable declarations
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23884 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-27 20:22:55 +00:00
reimar
7cd6c01aca Simplify: use FFMAX
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23861 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-25 17:31:34 +00:00
reimar
d02f928bc3 Remove some useless "extern" before function prototypes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23860 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-25 17:29:29 +00:00
rtogni
4b2b42adfa Fix for bugzilla #835
1) set audio language preferences (on command line or in ~/.mplayer/config).
(say, alang = Japanese[jpn],ja,jp,jpn,English[eng],en,eng,ko,ru,rus)
2) play a transport stream whose audio streams are not labeled
-> no audio

Patch by Sergey Svishchev >>> svs - ropnet ru <<< on bugzilla

Blessed by nicodvb


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23855 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-24 21:04:08 +00:00
nicodvb
72fedc8425 fixed bug introduced with the addition of get_ext_stream_properties()
that should close bug #843, too.
Patch by John Donaghy. Explanation:
The issue is that get_ext_stream_properties shouldnt be returning
false when no extended stream properties are found for the stream in
question because that is not an error condition ... extended stream
properties are optional. The only time this function should return
false is when the buffer overrun checks fail.





git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23823 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-18 22:16:08 +00:00
reimar
434cf0c9eb Avoid crash if a non-existent audio track is selected with -aid
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23790 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-16 14:01:53 +00:00
reimar
8dda469fc0 Use stream_read_qword_le
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23779 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-14 09:01:44 +00:00
aurel
8f167a73b8 add support for subtitles thru lavf
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23778 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-13 21:15:24 +00:00
attila
e3d05e9971 Fix segfault if an 'strf' chunk couldn't be found in avi
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23772 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-13 14:39:18 +00:00
aurel
338f0e6a1f fix typo in a comment
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23771 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-13 13:23:41 +00:00
zuxy
bc722a5236 fix unaligned memory access in asfheader.c, courtesy of Balatoni Denes
(dbalatoni AT programozo DOT hu)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23757 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-10 02:02:21 +00:00
nicodvb
357b96679e 100% cosmetics: reindentation and removal of trailing spaces
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23743 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-08 10:11:36 +00:00
nicodvb
30f3c76528 unified the skip of header and stuffing bytes after the parsing of pes_extension[12] fields
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23742 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-08 10:06:47 +00:00
nicodvb
2f4f674331 10l, forgot to skip the stuffing bytes eventually prepended to vc1 packets (identified by pes_extension2 subid)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23731 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-07 08:56:14 +00:00
nicodvb
836ffdb9f4 cosmetics: split separate instructions in separate lines
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23730 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-07 08:31:57 +00:00
nicodvb
1c4710b110 proper parsing of pes_extension[12] fields (replaces the previous code that relied on specific flags set
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23729 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-07 08:22:47 +00:00
reimar
01e1ab57ed Add some missing frees.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23724 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-05 22:06:05 +00:00
reimar
4c4a1070fe Avoid code duplication and ugly config.h hack by using av_strlcat/av_strlcpy
instead of plain strlcat/strlcpy


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23723 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-05 22:01:07 +00:00
diego
3e9e4acd8d Do not use leading underscores in multiple inclusion guards, they are reserved.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23709 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-02 22:34:45 +00:00
diego
437e32353f Consistently use filename as multiple inclusion guard.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23707 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-02 21:34:39 +00:00
reimar
f58c64c3f3 Use proper PRI?64 format strings
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23657 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-24 14:54:56 +00:00
reimar
ffd28484e5 Remove unused and trivial string variable
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23655 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-24 14:12:59 +00:00
reimar
05a637973d Fix format string to match actual type.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23652 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-24 14:08:22 +00:00
reimar
4e9363a8bb index_mode is already defined in demuxer.h
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23650 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-24 13:34:16 +00:00
reimar
33d26c72cf Get rid of: useless variable, useless cast and void * arithmetic
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23648 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-24 13:21:50 +00:00
reimar
4badc643ae Use AV_RL32
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23647 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-24 13:20:17 +00:00
reimar
4d4dd84726 Fix format strings to match argument type
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23646 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-24 13:09:08 +00:00
reimar
f36073916f make opt argument of demux_info_get const.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23631 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-24 10:20:42 +00:00
reimar
b88ce7fe9d pstrcpy -> av_strlcpy
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23622 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-24 08:39:40 +00:00