Project

General

Profile

Bug #2403 » fix_removed_api.patch

Markus, 05/18/2016 07:23 PM

View differences:

command/decoder.cpp
}
#endif
#if ((LIBAVCODEC_VERSION_MICRO > 100) && (LIBAVCODEC_VERSION_INT < ((55<<16)+(45<<8)+101))) || \
((LIBAVCODEC_VERSION_MICRO <= 100) && (LIBAVCODEC_VERSION_INT < ((55<<16)+(28<<8)+1)))
video_frame = avcodec_alloc_frame();
#else
video_frame = av_frame_alloc();
#endif
if (!video_frame)
{
esyslog("could not allocate frame");
(1-1/2)