avcodec: fix existence of AVCodecContext::codec_name using defined-ness of FF_API_CODEC_NAME

This commit is contained in:
Andreas Sommer
2023-05-24 21:49:22 +02:00
committed by Till Höppner
parent ac9129d2b6
commit 8611d0c3b8
+1 -1
View File
@@ -923,7 +923,7 @@ pub struct AVCodecContext {
pub log_level_offset: c_int,
pub codec_type: AVMediaType,
pub codec: *const AVCodec,
#[cfg(feature = "ff_api_codec_name")]
#[cfg(any(feature="ff_api_codec_name", not(feature="ff_api_codec_name_is_defined")))]
pub codec_name: [c_char; 32],
pub codec_id: AVCodecID,
pub codec_tag: c_uint,