summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-01-31 17:53:53 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-01-31 17:53:53 +0100
commit3b74a456ee62174fe2fbc6b88ae4610151ccf79d (patch)
tree939a193b4116160c7bf56a96908c5990b82a0aa7
parent5c26ca770797995e81eec934ca75574e98c30939 (diff)
avcodec: backwards compat for FF_MIN_BUFFER_SIZE
-rw-r--r--modules/avcodec/.encode.c.swpbin0 -> 16384 bytes
-rw-r--r--modules/avcodec/encode.c4
2 files changed, 4 insertions, 0 deletions
diff --git a/modules/avcodec/.encode.c.swp b/modules/avcodec/.encode.c.swp
new file mode 100644
index 0000000..a69db2c
--- /dev/null
+++ b/modules/avcodec/.encode.c.swp
Binary files differ
diff --git a/modules/avcodec/encode.c b/modules/avcodec/encode.c
index d1461bb..be365a6 100644
--- a/modules/avcodec/encode.c
+++ b/modules/avcodec/encode.c
@@ -24,6 +24,10 @@
#define AV_PIX_FMT_YUV420P PIX_FMT_YUV420P
#define AV_PIX_FMT_NV12 PIX_FMT_NV12
#endif
+
+#ifndef AV_INPUT_BUFFER_MIN_SIZE
+#define AV_INPUT_BUFFER_MIN_SIZE FF_MIN_BUFFER_SIZE
+#endif
enum {