Fix FTBFS from commit 0e824732

pull/1/head
Slávek Banko 10 years ago
parent 0e824732db
commit 2897194bc2

@ -9,6 +9,7 @@
// Copyright: See COPYING file that comes with this distribution
//
//
#include "config.h"
#include "k9avidecode.h"
#ifdef OLD_FFMPEG
@ -117,8 +118,10 @@ k9AviDecode::k9AviDecode(TQObject *parent, const char *name)
# ifndef HAVE_SWSCALE
img_convert = (img_convert_t)dlsym(CodecHandle,"img_convert");
//if img_convert is null (deprecated in ffmpeg), we need libswscale
if (!img_convert)
errs << i18n("Cannot open the library %1").arg("libswscale");
if (!img_convert) {
m_error = i18n("Cannot open the library %1").arg("libswscale");
return;
}
# endif
av_free = (av_free_t)dlsym(CodecHandle,"av_free");
av_free_packet = (av_free_packet_t)dlsym(CodecHandle,"av_free_packet");

Loading…
Cancel
Save