bytedeco/javacv

Got "avformat_open_input error: -1094995529"

Open

#1,772 opened on Mar 8, 2022

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Java (1,583 forks)batch import
help wantedquestion

Repository metrics

Stars
 (6,985 stars)
PR merge metrics
 (No merged PRs in 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"

Contributor guide