How compile with ffmpeg under Slackware 14.2?

Hi there, i am trying to compile Retroarch from git with ffmpeg, the latest version i can compile with that support was 1.7.8, but the actual version is 1.8.2, well i do the follow

#Get the source code & update it

cd /media/Compartido/Liñux/cdf/git
git clone https://github.com/libretro/RetroArch retroarch
cd retroarch
git pull
./fetch-submodules.sh

#Configure & Try make & Install

./configure \
--disable-systemd \
--enable-ffmpeg \
--prefix=/usr ; \
export {C,CXX}FLAGS='-O2 -fPIC -march=native -mtune=native -pipe' ; \
export OPTFLAGS='-O2 -fPIC -march=native -mtune=native -pipe' ; \
make ; su -c "make install ; ldconfig" root

#ffmpeg fail :

CC deps/miniupnpc/minisoap.c
CC record/drivers/record_ffmpeg.c
CC cores/libretro-ffmpeg/ffmpeg_core.c
cores/libretro-ffmpeg/ffmpeg_core.c: En la función ‘decode_thread’:
cores/libretro-ffmpeg/ffmpeg_core.c:1667:20: error: ‘AVCodecContext {aka struct AVCodecContext}’ no tiene un miembro llamado ‘hw_device_ctx’
    if (vctx && vctx->hw_device_ctx)
                    ^
cores/libretro-ffmpeg/ffmpeg_core.c:1668:28: error: ‘AVCodecContext {aka struct AVCodecContext}’ no tiene un miembro llamado ‘hw_device_ctx’
       av_buffer_unref(&vctx->hw_device_ctx);
                            ^
Makefile:211: fallo en las instrucciones para el objetivo 'obj-unix/release/cores/libretro-ffmpeg/ffmpeg_core.o'
make: *** [obj-unix/release/cores/libretro-ffmpeg/ffmpeg_core.o] Error 1

Which is the minimal version of ffmpeg need it for retroarch ? because i had compile & install the follow package via the package manager slpkg :

su -c "PULSEAUDIO=no LIBPULSE=no slpkg -s sbo ffmpeg ffmpeg2theora ffmpeg4 gst-ffmpeg ffmpegthumbnailer alsa-plugin-ffmpeg audacious-ffmpeg --rebuild --reinstall ; ldconfig" root

and all package are build fine.

Version Package :

alsa-plugin-ffmpeg-1.1.1
audacious-ffmpeg-3.7.2
ffmpegthumbnailer-2.2.0
ffmpeg-3.2.4
ffmpeg2theora-0.30
ffmpeg4-4.1
gst0-ffmpeg-0.10.13

Hi there again, yestarday i had upgrade the retroarch to v1.8.6 under Devuan with ffmpeg.

Well right now i am trying to do the same under Slackware64 14.2 :

./configure --disable-systemd --enable-ffmpeg --prefix=/usr ; \
export {C,CXX}FLAGS='-O2 -fPIC -march=native -mtune=native -pipe' ; \
export OPTFLAGS='-O2 -fPIC -march=native -mtune=native -pipe' ; \
make
su -c "make install ; ldconfig" root

and now well for some strange motive i dont know don’t download or load all assets.