upgraded libs broke code again..

Support and queries relating to all previous versions of ZoneMinder
calixto
Posts: 27
Joined: Tue Feb 07, 2006 9:25 pm
Location: Weston, FL

Post by calixto »

same thing happened to me, upgrading from 1.22.1 to 1.22.2

m_mpeg.cpp: In member function `void VideoStream::SetupCodec(int, int, int,
int, int)':
zm_mpeg.cpp:88: error: cannot convert `AVCodecContext**' to `AVCodecContext*'
in initialization
zm_mpeg.cpp:109: error: 'struct AVCodecContext' has no member named 'frame_rate
'
zm_mpeg.cpp:110: error: 'struct AVCodecContext' has no member named '
frame_rate_base'
zm_mpeg.cpp: In member function `void VideoStream::OpenStream()':
zm_mpeg.cpp:161: error: cannot convert `AVCodecContext**' to `AVCodecContext*'
in initialization
zm_mpeg.cpp: In destructor `VideoStream::~VideoStream()':
zm_mpeg.cpp:256: error: cannot convert `AVCodecContext**' to `AVCodecContext*'
for argument `1' to `int avcodec_close(AVCodecContext*)'
zm_mpeg.cpp: In member function `double VideoStream::EncodeFrame(uint8_t*, int,
bool, unsigned int)':
zm_mpeg.cpp:303: error: cannot convert `AVCodecContext**' to `AVCodecContext*'
in initialization
make[2]: *** [zm_mpeg.o] Error 1
make[2]: Leaving directory `/home/calixto/software/video/zoneminder/ZoneMinder-1.22.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving director
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

errr you need the patch in the wiki for ffmpeg it seems
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Locked