bytedeco/javacv

Got "avformat_open_input error: -1094995529"

Open

#1.772 aberto em 8 de mar. de 2022

Ver no GitHub
 (3 comments) (0 reactions) (0 assignees)Java (1.583 forks)batch import
help wantedquestion

Métricas do repositório

Stars
 (6.985 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

`

private AVFormatContext openInput(ByteBuffer buf) throws IOException {
        avfmtCtx = new AVFormatContext(null);
        BytePointer filePointer = new BytePointer(buf);
        int r = avformat.avformat_open_input(avfmtCtx, filePointer, null, null);
        filePointer.deallocate();
        if (r < 0) {
            avfmtCtx.close();
            throw new IOException("avformat_open_input error: " + r);
        }
        return avfmtCtx;
    }

`

I gave encoded bytebuffer as parameter. And got "avformat_open_input error: -1094995529"

Guia do colaborador