Skip to content
This repository was archived by the owner on Nov 19, 2020. It is now read-only.
This repository was archived by the owner on Nov 19, 2020. It is now read-only.

the misuse of avcodec_encode_audio2? #964

@syevanchen

Description

@syevanchen

What would you like to submit? (put an 'x' inside the bracket that applies)

  • question
  • bug report
  • feature request

Issue description

If you would like to submit an issue, please include a sample of the code you are trying to execute, as well as any data you might be using in your experiment, such as data tables, images, anything that might be necessary to reproduce the problem.

Note: If you would like to support the development for this feature or resolution of this bug, consider adding a bounty to it later in https://www.bountysource.com/teams/accord-net/issues

when I read the code of 3.7.0, and i find following codes in ffmpeg.cpp, I think the avcodec_encode_audio2 shouldn't use those parameters, isn't it?

int avcodec_encode_audio2 (AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)

pkt.size = libffmpeg::avcodec_encode_audio2(codecContext,
(libffmpeg::AVPacket*)data->AudioEncodeBuffer,
(libffmpeg::AVFrame*)data->AudioEncodeBufferSize, (int*)pSoundBuffer);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions