ffmpeg_cuvid: adapt for recent filter graph initialization changes

This commit is contained in:
Timo Rothenpieler
2017-02-09 21:33:51 +01:00
committed by wm4
parent 76e13bdeaa
commit 736f4af4fe
3 changed files with 34 additions and 129 deletions

View File

@@ -3546,19 +3546,6 @@ static int transcode_init(void)
input_streams[j + ifile->ist_index]->start = av_gettime_relative();
}
/* hwaccel transcoding */
for (i = 0; i < nb_output_streams; i++) {
ost = output_streams[i];
if (!ost->stream_copy) {
#if CONFIG_CUVID
if (cuvid_transcode_init(ost))
exit_program(1);
#endif
}
}
/* init input streams */
for (i = 0; i < nb_input_streams; i++)
if ((ret = init_input_stream(i, error, sizeof(error))) < 0) {