summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-11-16 16:23:28 +0100
committerwm4 <wm4@nowhere>2015-11-16 16:23:28 +0100
commit05be95c8ce6efccd35bf1d8405ae643834a03a1a (patch)
tree3aed7d003de988b398145cf06ece983c25c2cbe9
parent6b22b216514ee2eb784711f4539410d3b312a4fd (diff)
downloadmpv-05be95c8ce6efccd35bf1d8405ae643834a03a1a.tar.bz2
mpv-05be95c8ce6efccd35bf1d8405ae643834a03a1a.tar.xz
sub: remove an unneeded old hack for MicroDVD
This happens to be handled in a better way in another place now.
-rw-r--r--sub/dec_sub.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sub/dec_sub.c b/sub/dec_sub.c
index 20fa9eff83..c357f1d369 100644
--- a/sub/dec_sub.c
+++ b/sub/dec_sub.c
@@ -479,17 +479,6 @@ bool sub_read_all_packets(struct dec_sub *sub, struct sh_stream *sh)
if (opts->sub_fix_timing)
fix_overlaps_and_gaps(subs);
- if (sh->codec && strcmp(sh->codec, "microdvd") == 0) {
- // The last subtitle event in MicroDVD subs can have duration unset,
- // which means show the subtitle until end of video.
- // See FFmpeg FATE MicroDVD_capability_tester.sub
- if (subs->num_packets) {
- struct demux_packet *last = subs->packets[subs->num_packets - 1];
- if (last->duration <= 0)
- last->duration = 10; // arbitrary
- }
- }
-
add_sub_list(sub, preprocess, subs);
pthread_mutex_unlock(&sub->lock);