2017-12-16 17:12 GMT+08:00 Matthieu Bouron <matthieu.bou...@gmail.com>: > On Sat, Dec 16, 2017 at 01:40:18PM +0800, Wang Bin wrote: >> > > + width = s->crop_right + 1 - s->crop_left; >> > > + else >> > > + width = s->width; >> > > >> > > av_log(avctx, AV_LOG_INFO, >> > > "Output crop parameters top=%d bottom=%d left=%d right=%d, " >> > >> > On which device does this happen ? >> >> >> None of my devices have such problem. It happens if replace jni by ndk >> mediacodec functions(maybe another patch later). original code: >> https://github.com/aosp-mirror/platform_frameworks_base/blob/master/media/java/android/media/MediaCodec.java#L190 > > OK. I will soon apply the patch. > > I'm however not in favor of replacing the MediaCodec jni code by its ndk > counterpart now as it would drop compatibility with Android 4.4.
Just load libmediandk.so and resolve symbols at runtime, and fallback to jni if the library does not exist, i.e. on android < 5.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel