FFmpeg error LNK2019: unresolved external symbol ff_reshuffle_raw_rgb…

Building a slim version of FFmpeg (specifically: MOV muxer without AVI muxer) from latest source, an error around ff_reshuffle_raw_rgb is breaking the build:

movenc.o : error LNK2019: unresolved external symbol ff_reshuffle_raw_rgb referenced in function mov_write_packet
libavformat/avformat-v-57.dll : fatal error LNK1120: 1 unresolved externals
library.mak:111: recipe for target 'libavformat/avformat-v-57.dll' failed
make: *** [libavformat/avformat-v-57.dll] Error 96

Not a big a deal, it is just  a small bug there:

 libavformat/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/Makefile b/libavformat/Makefile
index 3b32907..6ae4327 100644
--- a/libavformat/Makefile
+++ b/libavformat/Makefile
@@ -268,7 +268,7 @@ OBJS-$(CONFIG_MMF_DEMUXER)               += mmf.o
 OBJS-$(CONFIG_MMF_MUXER)                 += mmf.o rawenc.o
 OBJS-$(CONFIG_MOV_DEMUXER)               += mov.o mov_chan.o replaygain.o
 OBJS-$(CONFIG_MOV_MUXER)                 += movenc.o avc.o hevc.o \
-                                            movenchint.o mov_chan.o rtp.o movenccenc.o
+                                            movenchint.o mov_chan.o rtp.o movenccenc.o rawutils.o
 OBJS-$(CONFIG_MP2_MUXER)                 += mp3enc.o rawenc.o id3v2enc.o
 OBJS-$(CONFIG_MP3_DEMUXER)               += mp3dec.o replaygain.o
 OBJS-$(CONFIG_MP3_MUXER)                 += mp3enc.o rawenc.o id3v2enc.o

One Reply to “FFmpeg error LNK2019: unresolved external symbol ff_reshuffle_raw_rgb…”

Leave a Reply