diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-03-03 20:45:41 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-03 21:06:24 +0100 |
commit | b79dfd16cbf08ffb250945ecfcac04a2a4775702 (patch) | |
tree | 7efef35c5a35f40d42b2ec00581c79c5b9778f25 | |
parent | ab5d46df1656a23cb75b005a3d7730e189e38c4d (diff) | |
download | ffmpeg-b79dfd16cbf08ffb250945ecfcac04a2a4775702.tar.gz |
ffmpeg: dont try to run the subtitle encoder on non subtitle streams
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | ffmpeg.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1894,7 +1894,8 @@ static int transcode_subtitles(InputStream *ist, AVPacket *pkt, int *got_output) for (i = 0; i < nb_output_streams; i++) { OutputStream *ost = output_streams[i]; - if (!check_output_constraints(ist, ost) || !ost->encoding_needed) + if (!check_output_constraints(ist, ost) || !ost->encoding_needed + || ost->enc->type != AVMEDIA_TYPE_SUBTITLE) continue; do_subtitle_out(output_files[ost->file_index]->ctx, ost, ist, &subtitle); |