if (ist->dec_ctx->codec_type == AVMEDIA_TYPE_AUDIO) {
av_log(NULL, AV_LOG_ERROR, "Cannot connect video filter to audio input\n");
if (ist->dec_ctx->codec_type == AVMEDIA_TYPE_AUDIO) {
av_log(NULL, AV_LOG_ERROR, "Cannot connect video filter to audio input\n");
snprintf(name, sizeof(name), "trim for input stream %d:%d",
ist->file_index, ist->st->index);
snprintf(name, sizeof(name), "trim for input stream %d:%d",
ist->file_index, ist->st->index);
- AV_NOPTS_VALUE : 0, f->recording_time, &last_filter, &pad_idx, name);
+ AV_NOPTS_VALUE : tsoffset, f->recording_time,
+ &last_filter, &pad_idx, name);
if (ist->dec_ctx->codec_type != AVMEDIA_TYPE_AUDIO) {
av_log(NULL, AV_LOG_ERROR, "Cannot connect audio filter to non audio input\n");
if (ist->dec_ctx->codec_type != AVMEDIA_TYPE_AUDIO) {
av_log(NULL, AV_LOG_ERROR, "Cannot connect audio filter to non audio input\n");
snprintf(name, sizeof(name), "trim for input stream %d:%d",
ist->file_index, ist->st->index);
snprintf(name, sizeof(name), "trim for input stream %d:%d",
ist->file_index, ist->st->index);
- AV_NOPTS_VALUE : 0, f->recording_time, &last_filter, &pad_idx, name);
+ AV_NOPTS_VALUE : tsoffset, f->recording_time,
+ &last_filter, &pad_idx, name);