avocdec/codec: make the destruct field nullable

This commit is contained in:
meh
2023-05-24 21:49:22 +02:00
committed by Till Höppner
parent 775b36d950
commit fac42d98fb
+1 -1
View File
@@ -660,7 +660,7 @@ pub struct AVPacket {
pub side_data: *mut AVPacketSideData,
pub side_data_elems: c_int,
pub duration: c_int,
pub destruct: extern fn(*mut AVPacket), // XXX: #if FF_API_DESTRUCT_PACKET
pub destruct: Option<extern fn(*mut AVPacket)>, // XXX: #if FF_API_DESTRUCT_PACKET
pub private: *mut c_void, // XXX: #if FF_API_DESTRUCT_PACKET
pub pos: int64_t,
pub convergence_duration: int64_t,