|
|
@ -22,6 +22,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
#include "config.h" |
|
|
|
#include "config.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "libavutil/error.h" |
|
|
|
|
|
|
|
|
|
|
|
#if CONFIG_H264_MEDIACODEC_HWACCEL |
|
|
|
#if CONFIG_H264_MEDIACODEC_HWACCEL |
|
|
|
|
|
|
|
|
|
|
|
#include <jni.h> |
|
|
|
#include <jni.h> |
|
|
@ -108,7 +110,7 @@ AVMediaCodecContext *av_mediacodec_alloc_context(void) |
|
|
|
|
|
|
|
|
|
|
|
int av_mediacodec_default_init(AVCodecContext *avctx, AVMediaCodecContext *ctx, void *surface) |
|
|
|
int av_mediacodec_default_init(AVCodecContext *avctx, AVMediaCodecContext *ctx, void *surface) |
|
|
|
{ |
|
|
|
{ |
|
|
|
return 0; |
|
|
|
return AVERROR(ENOSYS); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void av_mediacodec_default_free(AVCodecContext *avctx) |
|
|
|
void av_mediacodec_default_free(AVCodecContext *avctx) |
|
|
@ -117,7 +119,7 @@ void av_mediacodec_default_free(AVCodecContext *avctx) |
|
|
|
|
|
|
|
|
|
|
|
int av_mediacodec_release_buffer(AVMediaCodecBuffer *buffer, int render) |
|
|
|
int av_mediacodec_release_buffer(AVMediaCodecBuffer *buffer, int render) |
|
|
|
{ |
|
|
|
{ |
|
|
|
return 0; |
|
|
|
return AVERROR(ENOSYS); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|