Opened 6 years ago

Last modified 3 months ago

#14408 assigned enhancement

ffmpeg addon: update to latest API

Reported by: jackburton Owned by: nobody
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 (4)

comment:1 by jackburton, 6 years ago

Description: modified (diff)

comment:2 by jackburton, 6 years ago

Description: modified (diff)

comment:3 by korli, 6 years ago

Owner: changed from Barrett to nobody
Status: newassigned

comment:4 by waddlesplash, 3 months ago

Most of these have been fixed, I think av_freep is the only one remaining.

Note: See TracTickets for help on using tickets.