diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 6d2922444ffd2c9223d17d1bad015cf86c500ea5..7ff12d9aa41138c8f7c39e15145e8e58fecc7736 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -1873,6 +1873,7 @@ void audio_resample_close(ReSampleContext *s);
 
 struct AVResampleContext *av_resample_init(int out_rate, int in_rate);
 int av_resample(struct AVResampleContext *c, short *dst, short *src, int *consumed, int src_size, int dst_size, int update_ctx);
+void av_resample_compensate(struct AVResampleContext *c, int sample_delta, int compensation_distance);
 
 /* YUV420 format is assumed ! */