Commit 90ace21c authored by oggk's avatar oggk
Browse files

do not start a stream for subtitles codecs we do not understand (eg, graphics)

parent 1eae38c6
......@@ -792,7 +792,7 @@ void ff2theora_output(ff2theora this) {
if (codec && avcodec_open (enc, codec) >= 0) {
subtitles_opened[i] = 1;
}
if (enc->codec_id == CODEC_ID_TEXT || enc->codec_id == CODEC_ID_SSA || subtitles_opened[i]) {
if (enc->codec_id == CODEC_ID_TEXT || enc->codec_id == CODEC_ID_SSA /*|| subtitles_opened[i]*/) {
subtitles_enabled[i] = 1;
add_subtitles_stream(this, i, find_language_for_subtitle_stream(stream), NULL);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment