26 lines
739 B
Plaintext
26 lines
739 B
Plaintext
$OpenBSD: patch-src_mpeg_encode_c,v 1.4 2013/01/26 12:47:44 brad Exp $
|
|
|
|
Update for newer FFmpeg API.
|
|
|
|
--- src/mpeg_encode.c.orig Mon Nov 16 01:55:52 2009
|
|
+++ src/mpeg_encode.c Fri Jan 18 02:18:00 2013
|
|
@@ -141,7 +141,7 @@ static void convert_rgb_pixbuf_to_yuv(yuv_t * yuv, Gdk
|
|
/* -------------------------------------------------------- */
|
|
#ifdef AMIDE_FFMPEG_SUPPORT
|
|
|
|
-#include <ffmpeg/libavcodec/avcodec.h>
|
|
+#include <libavcodec/avcodec.h>
|
|
|
|
|
|
typedef struct {
|
|
@@ -211,9 +211,6 @@ gboolean avcodec_initialized=FALSE;
|
|
|
|
static void mpeg_encoding_init(void) {
|
|
if (!avcodec_initialized) {
|
|
- /* must be called before using avcodec lib */
|
|
- avcodec_init();
|
|
-
|
|
/* register all the codecs */
|
|
avcodec_register_all();
|
|
|