[FFmpeg-devel] [PATCH] jni, mediacodec: Return ENOSYS on unsupported platforms

Michael Niedermayer michael at niedermayer.cc
Wed Aug 3 00:45:14 EEST 2016


On Tue, Aug 02, 2016 at 01:38:40PM -0700, Timothy Gu wrote:
> ---
>  libavcodec/jni.c        | 2 +-
>  libavcodec/mediacodec.c | 4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/libavcodec/jni.c b/libavcodec/jni.c
> index 32456f5..e08a185 100644
> --- a/libavcodec/jni.c
> +++ b/libavcodec/jni.c
> @@ -69,7 +69,7 @@ void *av_jni_get_java_vm(void *log_ctx)
>  
>  int av_jni_set_java_vm(void *vm, void *log_ctx)
>  {
> -    return 0;
> +    return AVERROR(ENOSYS);
>  }

libavcodec/jni.c: In function ‘av_jni_set_java_vm’:
libavcodec/jni.c:72:5: error: implicit declaration of function ‘AVERROR’ [-Werror=implicit-function-declaration]
libavcodec/jni.c:72:20: error: ‘ENOSYS’ undeclared (first use in this function)
libavcodec/jni.c:72:20: note: each undeclared identifier is reported only once for each function it appears in
libavcodec/jni.c:73:1: error: control reaches end of non-void function [-Werror=return-type]


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Freedom in capitalist society always remains about the same as it was in
ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160802/0227b5db/attachment.sig>


More information about the ffmpeg-devel mailing list