|
|
|
@ -1073,7 +1073,7 @@ static int configure_input_video_filter(FilterGraph *fg, InputFilter *ifilter, |
|
|
|
|
if (fr.num && fr.den) |
|
|
|
|
av_bprintf(&args, ":frame_rate=%d/%d", fr.num, fr.den); |
|
|
|
|
snprintf(name, sizeof(name), "graph %d input from stream %d:%d", fg->index, |
|
|
|
|
ist->file_index, ist->st->index); |
|
|
|
|
ist->file_index, ist->index); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ((ret = avfilter_graph_create_filter(&ifilter->filter, buffer_filt, name, |
|
|
|
@ -1127,7 +1127,7 @@ static int configure_input_video_filter(FilterGraph *fg, InputFilter *ifilter, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
snprintf(name, sizeof(name), "trim_in_%d_%d", |
|
|
|
|
ist->file_index, ist->st->index); |
|
|
|
|
ist->file_index, ist->index); |
|
|
|
|
if (copy_ts) { |
|
|
|
|
tsoffset = f->start_time == AV_NOPTS_VALUE ? 0 : f->start_time; |
|
|
|
|
if (!start_at_zero && f->ctx->start_time != AV_NOPTS_VALUE) |
|
|
|
@ -1180,7 +1180,7 @@ static int configure_input_audio_filter(FilterGraph *fg, InputFilter *ifilter, |
|
|
|
|
} else |
|
|
|
|
av_bprintf(&args, ":channels=%d", ifp->ch_layout.nb_channels); |
|
|
|
|
snprintf(name, sizeof(name), "graph_%d_in_%d_%d", fg->index, |
|
|
|
|
ist->file_index, ist->st->index); |
|
|
|
|
ist->file_index, ist->index); |
|
|
|
|
|
|
|
|
|
if ((ret = avfilter_graph_create_filter(&ifilter->filter, abuffer_filt, |
|
|
|
|
name, args.str, NULL, |
|
|
|
@ -1189,7 +1189,7 @@ static int configure_input_audio_filter(FilterGraph *fg, InputFilter *ifilter, |
|
|
|
|
last_filter = ifilter->filter; |
|
|
|
|
|
|
|
|
|
snprintf(name, sizeof(name), "trim for input stream %d:%d", |
|
|
|
|
ist->file_index, ist->st->index); |
|
|
|
|
ist->file_index, ist->index); |
|
|
|
|
if (copy_ts) { |
|
|
|
|
tsoffset = f->start_time == AV_NOPTS_VALUE ? 0 : f->start_time; |
|
|
|
|
if (!start_at_zero && f->ctx->start_time != AV_NOPTS_VALUE) |
|
|
|
@ -1574,7 +1574,7 @@ int ifilter_send_eof(InputFilter *ifilter, int64_t pts, AVRational tb) |
|
|
|
|
ifp->type_src == AVMEDIA_TYPE_VIDEO)) { |
|
|
|
|
av_log(NULL, AV_LOG_ERROR, |
|
|
|
|
"Cannot determine format of input stream %d:%d after EOF\n", |
|
|
|
|
ifp->ist->file_index, ifp->ist->st->index); |
|
|
|
|
ifp->ist->file_index, ifp->ist->index); |
|
|
|
|
return AVERROR_INVALIDDATA; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|