Skip to content

FFmpeg API Shenanigans#380

Merged
dwbuiten merged 3 commits into
FFMS:masterfrom
dwbuiten:apishenanigans
May 5, 2021
Merged

FFmpeg API Shenanigans#380
dwbuiten merged 3 commits into
FFMS:masterfrom
dwbuiten:apishenanigans

Conversation

@dwbuiten
Copy link
Copy Markdown
Member

@dwbuiten dwbuiten commented May 4, 2021

Commits:

    Use auto for AVCodec

    The geniuses over at FFmpeg decided to constify this API, so old
    versions of the library will return AVCodec *, while new versions
    of the libary will return const AVCodec *, which, in C++, are not
    OK to convert between.

    Rather than use some macro hell in ffmscompat.h, we can work around
    this by using auto.
    configure: Remove deprecated API use
    all: Update AVPacket API usage

    AVPackets must all be on the heap now, since it is no longer
    part of the libav* ABI.

dwbuiten added 3 commits May 4, 2021 14:12
AVPackets must all be on the heap now, since it is no longer
part of the libav* ABI.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
The geniuses over at FFmpeg decided to constify this API, so old
versions of the library will return AVCodec *, while new versions
of the libary will return const AVCodec *, which, in C++, are not
OK to convert between.

Rather than use some macro hell in ffmscompat.h, we can work around
this by using auto.

Gross.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant