[FFmpeg-trac] #10299(avutil:new): avutil should link with libandroid.so when mediacodec enabled on android

FFmpeg trac at avcodec.org
Sun Apr 2 14:50:01 EEST 2023


#10299: avutil should link with libandroid.so when mediacodec enabled on android
----------------------------------+--------------------------------------
             Reporter:  chinshou  |                     Type:  defect
               Status:  new       |                 Priority:  normal
            Component:  avutil    |                  Version:  git-master
             Keywords:            |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+--------------------------------------
 Summary of the Bug:

 The issue was caused by a specific commit with SHA-1 value
 2697f23f4e866a81ddcfca0c99a56ed14f93dc07.

 * avutil/hwcontext_mediacodec: add ANativeWindow support

 In this commit, avutil was modified to include support for ANativeWindow,
 but the configure script did not include the necessary link option
 (-landroid) to locate the ANativeWindow_release API that exists in
 libandroid.so.

 As a result, when attempting to dlopen libavutil.so on Android, dlerror
 reported an error indicating that the ANativeWindow_release symbol could
 not be located.

 To fix the problem, the link option -landroid was hardcoded into the
 Makefile under the libavutil folder. However, a more appropriate solution
 would be to fix the configure script, although this may require expertise
 with autotools scripting that I am not familiar with.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10299>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list