svn commit: r468431 - head/textproc/libextractor/files

Jan Beich jbeich at FreeBSD.org
Fri Apr 27 14:37:29 UTC 2018


Author: jbeich
Date: Fri Apr 27 14:37:28 2018
New Revision: 468431
URL: https://svnweb.freebsd.org/changeset/ports/468431

Log:
  textproc/libextractor: unbreak with ffmpeg 4.0
  
  thumbnailffmpeg_extractor.c:426:29: error: use of undeclared identifier 'FF_INPUT_BUFFER_PADDING_SIZE'
    unsigned char padded_data[PADDED_BUFFER_SIZE];
                              ^
  thumbnailffmpeg_extractor.c:99:43: note: expanded from macro 'PADDED_BUFFER_SIZE'
   #define PADDED_BUFFER_SIZE (BUFFER_SIZE + FF_INPUT_BUFFER_PADDING_SIZE)
                                             ^
  thumbnailffmpeg_extractor.c:479:38: error: use of undeclared identifier 'FF_INPUT_BUFFER_PADDING_SIZE'
        memset (&padded_data[iret], 0, PADDED_BUFFER_SIZE - iret);
                                       ^
  thumbnailffmpeg_extractor.c:99:43: note: expanded from macro 'PADDED_BUFFER_SIZE'
   #define PADDED_BUFFER_SIZE (BUFFER_SIZE + FF_INPUT_BUFFER_PADDING_SIZE)
                                             ^
  PR:		227726

Modified:
  head/textproc/libextractor/files/patch-ffmpeg29   (contents, props changed)

Modified: head/textproc/libextractor/files/patch-ffmpeg29
==============================================================================
--- head/textproc/libextractor/files/patch-ffmpeg29	Fri Apr 27 14:22:45 2018	(r468430)
+++ head/textproc/libextractor/files/patch-ffmpeg29	Fri Apr 27 14:37:28 2018	(r468431)
@@ -24,6 +24,15 @@ Applied-Upstream: commit: r35548:r35549 and r36975
  /**
   * Set to 1 to enable debug output.
   */ 
+@@ -82,7 +96,7 @@
+ /**
+  * Number of bytes to feed to libav in one go, with padding (padding is zeroed).
+  */
+-#define PADDED_BUFFER_SIZE (BUFFER_SIZE + FF_INPUT_BUFFER_PADDING_SIZE)
++#define PADDED_BUFFER_SIZE (BUFFER_SIZE + AV_INPUT_BUFFER_PADDING_SIZE)
+ 
+ /**
+  * Global handle to MAGIC data.
 @@ -153,7 +167,7 @@
  static size_t 
  create_thumbnail (int src_width, int src_height, 


More information about the svn-ports-head mailing list