ref: c81a45e9b54fdb8c1835aeb575e748ec6d7c921d
parent: 3e264d195ae38ae281cec5c3cc3632a56bb9cb1c
author: Pascal Giard <evilynux@gmail.com>
date: Sun Aug 21 20:44:28 EDT 2011
Added support for libav >= 0.7.0.
--- a/src/ffmpeg.c
+++ b/src/ffmpeg.c
@@ -50,6 +50,13 @@
#include <ctype.h>
#include "ffmpeg.h"
+#ifndef CODEC_TYPE_AUDIO
+#define CODEC_TYPE_AUDIO AVMEDIA_TYPE_AUDIO
+#endif
+#ifndef PKT_FLAG_KEY
+#define PKT_FLAG_KEY AV_PKT_FLAG_KEY
+#endif
+
/* Private data for ffmpeg files */
typedef struct {
int audio_index;