如何将新的 ffmpeg 编解码器 ID 添加到 libjitsi

How to add a new ffmpeg codec id to libjitsi

我需要在使用 libjitsi and I'm getting lost trying to figure out how the org.jitsi.impl.neomedia.codec.FFmpeg.class determines the codec id's that it has internally. For instance CODEC_ID_MP3 exists with the value of 86017; how is that int determined? I am not a C / C++ guy, so even though I looked through the ffmpeg avcodec.h 文件的 Java 项目中添加对 AAC 的支持,我不明白为什么大多数枚举没有关联值;甚至 CODEC_ID_MP3 那里也是空白的。所以总而言之,我如何将 CODEC_ID_AAC 和 CODEC_ID_AAC_LATM 添加到我的 FFmpeg class 扩展中?

感谢 Jitsi 的 Boris,我从 this header file:

创建了这个片段
import org.jitsi.impl.neomedia.codec.FFmpeg;

public class MyFFmpeg extends FFmpeg {
    // 1 enums past mp3
    public static final int CODEC_ID_AAC = FFmpeg.CODEC_ID_MP3 + 1;
    // 48 enums past mp3
    public static final int CODEC_ID_AAC_LATM = FFmpeg.CODEC_ID_MP3 + 48;

    public static void main(String[] args) {
        // expect 86018 and 86065
        System.out.println("AAC: " + CODEC_ID_AAC + ' ' + CODEC_ID_AAC_LATM);
    }
}