Browse Source

avifile: fixed to build with new ffmpeg version

early
Aldas Nabazas 16 years ago
parent
commit
49651c67bc
  1. 4
      multimedia/avifile/avifile.conf
  2. 37
      multimedia/avifile/ffmpeg-api.patch

4
multimedia/avifile/avifile.conf

@ -2,6 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# #
# Filename: package/.../avifile/avifile.conf # Filename: package/.../avifile/avifile.conf
# Copyright (C) 2008 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project
# #
# More information can be found in the files COPYING and README. # More information can be found in the files COPYING and README.
@ -16,7 +17,8 @@ autogen=1
# Prevent using the internal ffmpeg and use an external one instead. # Prevent using the internal ffmpeg and use an external one instead.
pkgprefix -t ffmpeg pkgprefix -t ffmpeg
var_append GCC_WRAPPER_APPEND ' ' "-I$root/$(pkgprefix includedir ffmpeg)/ffmpeg" var_append GCC_WRAPPER_APPEND ' ' "-I$root/$(pkgprefix includedir ffmpeg)/libavformat"
var_append GCC_WRAPPER_APPEND ' ' "-I$root/$(pkgprefix includedir ffmpeg)/libavcodec"
# some addition to the patches to use the system ffmpeg # some addition to the patches to use the system ffmpeg
var_append makeopt ' ' 'FF_LIB="-lavformat -lavcodec -lavutil"' var_append makeopt ' ' 'FF_LIB="-lavformat -lavcodec -lavutil"'

37
multimedia/avifile/ffmpeg-api.patch

@ -0,0 +1,37 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../avifile/ffmpeg-api.patch
# Copyright (C) 2008 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
diff -Nur avifile-0.6-orig/lib/aviread/FFReadHandler.cpp avifile-0.6/lib/aviread/FFReadHandler.cpp
--- avifile-0.6-orig/lib/aviread/FFReadHandler.cpp 2008-08-30 12:00:40.000000000 +0200
+++ avifile-0.6/lib/aviread/FFReadHandler.cpp 2008-08-30 12:03:32.000000000 +0200
@@ -145,7 +145,7 @@
int FFReadHandler::seek(framepos_t pos)
{
Locker locker(m_Mutex);
- url_fseek(&m_pContext->pb, 0, SEEK_SET);
+ url_fseek(m_pContext->pb, 0, SEEK_SET);
flush();
//av_find_stream_info(m_pContext);
return 0;
@@ -158,7 +158,7 @@
AVM_WRITE("FF reader", 5, "readPacket()\n");
if (av_read_packet(m_pContext, &pkt) < 0)
{
- if (!url_feof(&m_pContext->pb))
+ if (!url_feof(m_pContext->pb))
AVM_WRITE("FF reader", "ffmpeg packet error and not eof??\n");
return -1;
}
Loading…
Cancel
Save