Opened 6 years ago

Last modified 5 years ago

#14408 assigned enhancement

ffmpeg addon: update to latest API — at Version 2

Reported by: jackburton Owned by: Barrett
Priority: normal Milestone: Unscheduled
Component: Kits/Media Kit Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by jackburton)

The ffmpeg addon was written with an older version of the ffmpeg library. Many things changed and various functions were deprecated. We should update it so it uses the newest API.

Incomplete list:

av_free_packet() -> av_packet_unref()
avcodec_decode_video2()/avcodec_decode_audio4 -> avcodec_send_packet()/avcodec_receive_frame()
av_free() -> av_freep()
avcodec_close() -> avcodec_free_context() (a codec should not be closed/reopened)
use the correct av_free* methods

Change History (2)

comment:1 by jackburton, 6 years ago

Description: modified (diff)

comment:2 by jackburton, 6 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.