summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demux_lavf.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-09-01 20:09:51 +0200
committerwm4 <wm4@nowhere>2012-09-18 21:04:46 +0200
commitf0b2c3dcd79885ed6c2e407b9d6d474968da8813 (patch)
tree0f7f3abacb35eada3a1c611f8b4c277eae8e8e39 /libmpdemux/demux_lavf.c
parent128bc6a21e3306b8e8346aba439a3c4e2dcbcdc5 (diff)
downloadmpv-f0b2c3dcd79885ed6c2e407b9d6d474968da8813.tar.bz2
mpv-f0b2c3dcd79885ed6c2e407b9d6d474968da8813.tar.xz
demuxer: do not set sub_utf8 option
demux_lavf and demux_mkv, which both support demuxing subtitles, set the global variable sub_utf8. This variable is connected with the -utf8 option, and should not be reset by code. Since demuxer subtitles are not influenced by this option (anymore?), this is unnecessary. Remove the code setting this variable from the demuxers.
Diffstat (limited to 'libmpdemux/demux_lavf.c')
-rw-r--r--libmpdemux/demux_lavf.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libmpdemux/demux_lavf.c b/libmpdemux/demux_lavf.c
index 69cb0f02fc..5802f1068a 100644
--- a/libmpdemux/demux_lavf.c
+++ b/libmpdemux/demux_lavf.c
@@ -44,7 +44,6 @@
#include "demuxer.h"
#include "stheader.h"
#include "m_option.h"
-#include "sub/sub.h"
#include "mp_taglists.h"
@@ -812,7 +811,6 @@ static int demux_lavf_fill_buffer(demuxer_t *demux, demux_stream_t *dsds)
} else if (id == demux->sub->id) {
// subtitle
ds = demux->sub;
- sub_utf8 = 1;
} else {
talloc_free(pkt);
return 1;