* [FFmpeg-devel] [PR] avformat/tests/movenc: Make objects static (PR #21631)
@ 2026-02-02 22:09 mkver via ffmpeg-devel
0 siblings, 0 replies; only message in thread
From: mkver via ffmpeg-devel @ 2026-02-02 22:09 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: mkver
PR #21631 opened by mkver
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21631
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21631.patch
(This also fixes a symbol name collision with libssh,
which has a nonstatic function called md5.)
>From 836d34e3bab29cf7e962a1e9360329d9e52f7a4b Mon Sep 17 00:00:00 2001
From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Date: Mon, 2 Feb 2026 23:06:57 +0100
Subject: [PATCH] avformat/tests/movenc: Make objects static
(This also fixes a symbol name collision with libssh,
which has a nonstatic function called md5.)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
libavformat/tests/movenc.c | 54 +++++++++++++++++++-------------------
1 file changed, 27 insertions(+), 27 deletions(-)
diff --git a/libavformat/tests/movenc.c b/libavformat/tests/movenc.c
index 23a827e97c..32268a45e7 100644
--- a/libavformat/tests/movenc.c
+++ b/libavformat/tests/movenc.c
@@ -46,38 +46,38 @@ static const uint8_t aac_extradata[] = {
static const char *format = "mp4";
-AVFormatContext *ctx;
-uint8_t iobuf[32768];
-AVDictionary *opts;
+static AVFormatContext *ctx;
+static uint8_t iobuf[32768];
+static AVDictionary *opts;
-int write_file;
-const char *cur_name;
-FILE* out;
-int out_size;
-struct AVMD5* md5;
-uint8_t hash[HASH_SIZE];
+static int write_file;
+static const char *cur_name;
+static FILE* out;
+static int out_size;
+static struct AVMD5* md5;
+static uint8_t hash[HASH_SIZE];
-AVPacket *pkt;
-AVStream *video_st, *audio_st, *id3_st;
-int64_t audio_dts, video_dts;
+static AVPacket *pkt;
+static AVStream *video_st, *audio_st, *id3_st;
+static int64_t audio_dts, video_dts;
-int bframes;
-int64_t duration;
-int64_t audio_duration;
-int frames;
-int gop_size;
-int64_t next_p_pts;
-enum AVPictureType last_picture;
-int skip_write;
-int skip_write_audio;
-int clear_duration;
-int force_iobuf_size;
-int do_interleave;
-int fake_pkt_duration;
+static int bframes;
+static int64_t duration;
+static int64_t audio_duration;
+static int frames;
+static int gop_size;
+static int64_t next_p_pts;
+static enum AVPictureType last_picture;
+static int skip_write;
+static int skip_write_audio;
+static int clear_duration;
+static int force_iobuf_size;
+static int do_interleave;
+static int fake_pkt_duration;
-int num_warnings;
+static int num_warnings;
-int check_faults;
+static int check_faults;
static void count_warnings(void *avcl, int level, const char *fmt, va_list vl)
--
2.52.0
_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-02-02 22:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-02 22:09 [FFmpeg-devel] [PR] avformat/tests/movenc: Make objects static (PR #21631) mkver via ffmpeg-devel
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git