mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-17 21:30:02 +01:00
avcodec_encode_video in libav libavcodec 56.11.0 but not in ffmpeg libavcodec 56.13.100
This commit is contained in:
@@ -23,6 +23,8 @@
|
|||||||
|
|
||||||
#define FF_VJE_BACKPORT (LIBAVCODEC_VERSION_MAJOR >= 56 && LIBAVCODEC_VERSION_MINOR >= 1)
|
#define FF_VJE_BACKPORT (LIBAVCODEC_VERSION_MAJOR >= 56 && LIBAVCODEC_VERSION_MINOR >= 1)
|
||||||
|
|
||||||
|
#define FF_NO_VIDEO_ENCODE (LIBAVCODEC_VERSION_MICRO > 0 && LIBAVCODEC_VERSION_MAJOR >= 56)
|
||||||
|
|
||||||
#if FF_VJE_BACKPORT
|
#if FF_VJE_BACKPORT
|
||||||
|
|
||||||
#ifndef CODEC_ID_MJPEGB
|
#ifndef CODEC_ID_MJPEGB
|
||||||
|
|||||||
@@ -33,7 +33,6 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <libavutil/avutil.h>
|
#include <libavutil/avutil.h>
|
||||||
#include <libavcodec/avcodec.h>
|
#include <libavcodec/avcodec.h>
|
||||||
#include <libavcodec/version.h>
|
|
||||||
#include <libavformat/avformat.h>
|
#include <libavformat/avformat.h>
|
||||||
#include <libel/av.h>
|
#include <libel/av.h>
|
||||||
#ifdef STRICT_CHECKING
|
#ifdef STRICT_CHECKING
|
||||||
@@ -587,7 +586,7 @@ static int vj_avcodec_copy_frame( vj_encoder *av, uint8_t *src[3], uint8_t *dst
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if FF_VJE_BACKPORT
|
#if FF_NO_VIDEO_ENCODE
|
||||||
static int avcodec_encode_video( AVCodecContext *ctx, uint8_t *buf, int len, AVFrame *frame)
|
static int avcodec_encode_video( AVCodecContext *ctx, uint8_t *buf, int len, AVFrame *frame)
|
||||||
{
|
{
|
||||||
AVPacket pkt;
|
AVPacket pkt;
|
||||||
|
|||||||
Reference in New Issue
Block a user