git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@4880 92316355-f0b4-4df1-b90c-862c8a59935fmaster
@@ -1,6 +1,6 @@ | |||||
# $Id: $ | # $Id: $ | ||||
pkglibdir = $(libdir)/ThePimp | |||||
mypkglibdir = $(libdir)/ThePimp | |||||
pimp_sources = \ | pimp_sources = \ | ||||
src/AssemblyInfo.cs \ | src/AssemblyInfo.cs \ | ||||
@@ -32,7 +32,7 @@ image_sources = \ | |||||
images/about.svg | images/about.svg | ||||
if USE_CSHARP | if USE_CSHARP | ||||
pkglib_DATA = ThePimp.exe | |||||
mypkglib_DATA = ThePimp.exe | |||||
bin_SCRIPTS = pimp | bin_SCRIPTS = pimp | ||||
endif | endif | ||||
@@ -37,7 +37,7 @@ aclocalflags="`sed -ne 's/^[ \t]*ACLOCAL_AMFLAGS[ \t]*=//p' Makefile.am 2>/dev/n | |||||
# Check for automake | # Check for automake | ||||
amvers="no" | amvers="no" | ||||
for v in 11 10 9 8 7 6 5; do | |||||
for v in 15 14 13 12 11 10 9 8 7 6 5; do | |||||
if automake-1.${v} --version >/dev/null 2>&1; then | if automake-1.${v} --version >/dev/null 2>&1; then | ||||
amvers="-1.${v}" | amvers="-1.${v}" | ||||
break | break | ||||
@@ -4,7 +4,7 @@ AC_INIT(libpipi, 0.0) | |||||
AC_PREREQ(2.50) | AC_PREREQ(2.50) | ||||
AC_CONFIG_AUX_DIR(.auto) | AC_CONFIG_AUX_DIR(.auto) | ||||
AC_CANONICAL_SYSTEM | AC_CANONICAL_SYSTEM | ||||
AM_INIT_AUTOMAKE([no-define tar-ustar]) | |||||
AM_INIT_AUTOMAKE([subdir-objects no-define tar-ustar silent-rules]) | |||||
dnl AM_MAINTAINER_MODE | dnl AM_MAINTAINER_MODE | ||||
AM_CONFIG_HEADER(config.h) | AM_CONFIG_HEADER(config.h) | ||||
@@ -232,6 +232,8 @@ if test "${ac_cv_my_have_ffmpeg}" = "no"; then | |||||
PKG_CHECK_MODULES([LIBAVFORMAT], [libavformat], [:], [ac_cv_my_have_ffmpeg=no]) | PKG_CHECK_MODULES([LIBAVFORMAT], [libavformat], [:], [ac_cv_my_have_ffmpeg=no]) | ||||
PKG_CHECK_MODULES([LIBSWSCALE], [libswscale], [:], [ac_cv_my_have_ffmpeg=no]) | PKG_CHECK_MODULES([LIBSWSCALE], [libswscale], [:], [ac_cv_my_have_ffmpeg=no]) | ||||
fi | fi | ||||
# Disable for now | |||||
ac_cv_my_have_ffmpeg="no" | |||||
if test "${ac_cv_my_have_ffmpeg}" != "no"; then | if test "${ac_cv_my_have_ffmpeg}" != "no"; then | ||||
AC_DEFINE(USE_FFMPEG, 1, Define to 1 to use FFmpeg) | AC_DEFINE(USE_FFMPEG, 1, Define to 1 to use FFmpeg) | ||||
fi | fi | ||||
@@ -100,7 +100,7 @@ int main(int argc, char *argv[]) | |||||
continue; | continue; | ||||
} | } | ||||
avcodec_decode_video(ctx, frame, &finished, packet.data, packet.size); | |||||
avcodec_decode_video2(ctx, frame, &finished, packet.data, packet.size); | |||||
if(!finished) | if(!finished) | ||||
{ | { | ||||
av_free_packet(&packet); | av_free_packet(&packet); | ||||
@@ -114,7 +114,7 @@ int main(int argc, char *argv[]) | |||||
continue; | continue; | ||||
} | } | ||||
avcodec_decode_video(ctx, frame, &finished, packet.data, packet.size); | |||||
avcodec_decode_video2(ctx, frame, &finished, packet.data, packet.size); | |||||
if(!finished) | if(!finished) | ||||
{ | { | ||||
av_free_packet(&packet); | av_free_packet(&packet); | ||||