From fddf881c06c553d3dcb4522dbc2be9b4ef7f657a Mon Sep 17 00:00:00 2001 From: Zhao Zhili Date: Sun, 25 Jan 2026 22:14:05 +0800 Subject: [PATCH] avformat: use int instead of enum for AVOption fields Signed-off-by: Zhao Zhili --- libavformat/chromaprint.c | 3 ++- libavformat/libsrt.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libavformat/chromaprint.c b/libavformat/chromaprint.c index eae233a651..d55e6e0845 100644 --- a/libavformat/chromaprint.c +++ b/libavformat/chromaprint.c @@ -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 diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c index ba04d9f782..12a7ad6a52 100644 --- a/libavformat/libsrt.c +++ b/libavformat/libsrt.c @@ -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;