avformat: use int instead of enum for AVOption fields

Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
Zhao Zhili
2026-01-25 22:14:05 +08:00
parent 86d2fae59f
commit fddf881c06
2 changed files with 4 additions and 2 deletions

View File

@@ -41,7 +41,8 @@ typedef struct ChromaprintMuxContext {
const AVClass *class;
int silence_threshold;
int algorithm;
FingerprintFormat fp_format;
/* FingerprintFormat, use int for AVOption */
int fp_format;
#if CPR_VERSION_INT >= AV_VERSION_INT(1, 4, 0)
ChromaprintContext *ctx;
#else

View File

@@ -82,7 +82,8 @@ typedef struct SRTContext {
int payload_size;
int64_t rcvlatency;
int64_t peerlatency;
enum SRTMode mode;
/* enum SRTMode, use int for AVOption */
int mode;
int sndbuf;
int rcvbuf;
int lossmaxttl;