mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-11-02 05:23:14 +08:00
avcodec: use HAVE_THREADS header guards to silence -Wunused-function
When compiled with --disable-pthreads, e.g http://fate.ffmpeg.org/report.cgi?time=20150917015044&slot=alpha-debian-qemu-gcc-4.7, a bunch of -Wunused-functions are reported due to missing header guards around threading related functions. This patch should silence such warnings. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
committed by
Ronald S. Bultje
parent
26e8895b73
commit
2cbaa078d1
@@ -1139,6 +1139,7 @@ static av_cold int mpeg_decode_init(AVCodecContext *avctx)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if HAVE_THREADS
|
||||
static int mpeg_decode_update_thread_context(AVCodecContext *avctx,
|
||||
const AVCodecContext *avctx_from)
|
||||
{
|
||||
@@ -1163,6 +1164,7 @@ static int mpeg_decode_update_thread_context(AVCodecContext *avctx,
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void quant_matrix_rebuild(uint16_t *matrix, const uint8_t *old_perm,
|
||||
const uint8_t *new_perm)
|
||||
|
||||
Reference in New Issue
Block a user