Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allocate AVPacket with av_packet_alloc() #2302

Closed
rom1v opened this issue May 7, 2021 · 1 comment
Closed

Allocate AVPacket with av_packet_alloc() #2302

rom1v opened this issue May 7, 2021 · 1 comment
Assignees
Labels

Comments

@rom1v
Copy link
Collaborator

rom1v commented May 7, 2021

PSA: The Great Deprecated API Removal landed in git HEAD a little while back, after 4.4 was tagged. Among the big changes are removal of the old decoding API and removal of AVPacket from the ABI (needs to be on the heap, allocated with av_packet_alloc() now). Test your codebases!

https://twitter.com/FFmpeg/status/1389618769262174209

@rom1v rom1v added the todo label May 7, 2021
@rom1v rom1v self-assigned this May 7, 2021
@rom1v rom1v changed the title Allocate AVPackets with av_packet_alloc() Allocate AVPackets with av_packet_alloc() May 7, 2021
@rom1v rom1v changed the title Allocate AVPackets with av_packet_alloc() Allocate AVPacket with av_packet_alloc() May 7, 2021
rom1v added a commit that referenced this issue Jun 14, 2021
From FFmpeg/doc/APIchanges:

    2021-03-17 - f7db77bd87 - lavc 58.133.100 - codec.h
      Deprecated av_init_packet(). Once removed, sizeof(AVPacket) will
      no longer be a part of the public ABI.

Remove the has_pending boolean, which can be replaced by:

    stream->pending != NULL

Refs #2302 <#2302>
rom1v added a commit that referenced this issue Jun 14, 2021
From FFmpeg/doc/APIchanges:

    2021-03-17 - f7db77bd87 - lavc 58.133.100 - codec.h
      Deprecated av_init_packet(). Once removed, sizeof(AVPacket) will
      no longer be a part of the public ABI.

Refs #2302 <#2302>
rom1v added a commit that referenced this issue Jun 14, 2021
From FFmpeg/doc/APIchanges:

    2021-03-17 - f7db77bd87 - lavc 58.133.100 - codec.h
      Deprecated av_init_packet(). Once removed, sizeof(AVPacket) will
      no longer be a part of the public ABI.

Refs #2302 <#2302>
rom1v added a commit that referenced this issue Jun 14, 2021
From FFmpeg/doc/APIchanges:

    2021-03-17 - f7db77bd87 - lavc 58.133.100 - codec.h
      Deprecated av_init_packet(). Once removed, sizeof(AVPacket) will
      no longer be a part of the public ABI.

Refs #2302 <#2302>
@rom1v
Copy link
Collaborator Author

rom1v commented Jun 14, 2021

    From FFmpeg/doc/APIchanges:
    
        2021-03-17 - f7db77bd87 - lavc 58.133.100 - codec.h
          Deprecated av_init_packet(). Once removed, sizeof(AVPacket) will
          no longer be a part of the public ABI.

Fixed by:

@rom1v rom1v closed this as completed Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant