1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-23 15:22:09 +00:00
mpv/sub
wm4 962a97a2db sd_lavc: keep subs on subtitle track switching
Keep the currently displayed subtitles even when the user cycles through
subtitle tracks, and the subtitle is decoded by libavcodec (such as
vobsubs). Do this by not clearing the subtitles on reset(). reset() is
also called on seek, so check the start PTS whether the subtitle should
really be displayed (there's already an end PTS). Note that sd_ass does
essentially something similar.

The existing code has checks for whether the PTS reported by the demuxer
is invalid (MP_NOPTS_VALUE). I don't know under what circumstances this
can happens, so fall back to the old behavior if the PTS is invalid.
2012-12-12 22:56:41 +01:00
..
ass_mp.c osd: make the OSD and sub font more customizable 2012-11-20 18:00:15 +01:00
ass_mp.h osd: make the OSD and sub font more customizable 2012-11-20 18:00:15 +01:00
dec_sub.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
dec_sub.h VO, sub: refactor 2012-10-24 21:56:34 +02:00
draw_bmp.c video: add support for 12 and 14 bit YUV pixel formats 2012-12-03 21:08:51 +01:00
draw_bmp.h vo_xv: don't require frame stepping to remove OSD or subs 2012-11-21 19:56:59 +01:00
find_sub.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
find_subfiles.c sub: remove vobsub reader in favor of ffmpeg vobsub demuxer 2012-12-11 00:37:54 +01:00
find_subfiles.h sub: remove vobsub reader in favor of ffmpeg vobsub demuxer 2012-12-11 00:37:54 +01:00
img_convert.c sub: add --sub-gray option to display image subs in grayscale 2012-11-25 23:40:07 +01:00
img_convert.h sub: add --sub-gray option to display image subs in grayscale 2012-11-25 23:40:07 +01:00
osd_dummy.c sub: allow rendering OSD in ASS image format directly, simplify 2012-10-16 07:26:30 +02:00
osd_font.pfb osd: osd_font.h -> osd_font.pfb 2012-07-28 23:36:08 +02:00
osd_libass.c osd: make the OSD and sub font more customizable 2012-11-20 18:00:15 +01:00
sd_ass.c sub: clear libavformat demuxed subtitles on seeking 2012-12-03 21:08:52 +01:00
sd_lavc.c sd_lavc: keep subs on subtitle track switching 2012-12-12 22:56:41 +01:00
sd.h VO, sub: refactor 2012-10-24 21:56:34 +02:00
spudec.c sub: remove vobsub reader in favor of ffmpeg vobsub demuxer 2012-12-11 00:37:54 +01:00
spudec.h options: remove --ffactor switch 2012-10-24 21:56:35 +02:00
sub.c subs: remove --utf8, simplify code 2012-12-03 21:08:52 +01:00
sub.h subs: remove --utf8, simplify code 2012-12-03 21:08:52 +01:00
subassconvert.c subassconverter: correctly handle RRGGBB and unknow formats 2012-11-25 23:47:57 +01:00
subassconvert.h
subreader.c configure: remove --disable-sortsub 2012-12-11 00:37:54 +01:00
subreader.h subreader: replace sub_free() by talloc destructor 2012-11-16 21:21:15 +01:00