summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2012-01-09 01:42:38 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-01-09 04:16:06 +0100
commit741aca793623afeff1d18816f416cc65104b7ef9 (patch)
tree50059d3289edecf10112d626c4c821c72847c440 /ffmpeg.c
parent3e9668501dea070c0a1bd6c721eab1af09b26339 (diff)
libswresample: introduce int swr_set_compensation() instead of void swr_compensate()
The new version returns AVERROR(EINVAL) is the specified paramters are invalid, and also creates the resampler if none was used so far. Signed-off-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 13d7d6cf5e..a13e33a503 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1160,7 +1160,7 @@ need_realloc:
av_log(NULL, AV_LOG_VERBOSE, "compensating audio timestamp drift:%f compensation:%d in:%d\n",
delta, comp, enc->sample_rate);
// fprintf(stderr, "drift:%f len:%d opts:%"PRId64" ipts:%"PRId64" fifo:%d\n", delta, -1, ost->sync_opts, (int64_t)(get_sync_ipts(ost) * enc->sample_rate), av_fifo_size(ost->fifo)/(ost->st->codec->channels * 2));
- swr_compensate(ost->swr, comp, enc->sample_rate);
+ swr_set_compensation(ost->swr, comp, enc->sample_rate);
}
}
} else