diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 3eb1386a24..99dd52b0c9 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -8083,7 +8083,7 @@ int main(void){ #endif /* TEST */ -av_cold ff_h264_free_context(H264Context *h) +av_cold void ff_h264_free_context(H264Context *h) { int i; diff --git a/libavcodec/h264.h b/libavcodec/h264.h index 1f151af2cb..b58d86a67d 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -572,6 +572,6 @@ int ff_h264_decode_rbsp_trailing(H264Context *h, const uint8_t *src); /** * frees any data that may have been allocated in the H264 context like SPS, PPS etc. */ -av_cold ff_h264_free_context(H264Context *h); +av_cold void ff_h264_free_context(H264Context *h); #endif /* AVCODEC_H264_H */