From 56450a0ee4fdda160f4039fc2ae33edfd27765c9 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Thu, 25 Feb 2021 03:11:32 +0100 Subject: avformat: Constify the API wrt AV(In|Out)putFormat Also constify AVProbeData. Signed-off-by: Andreas Rheinhardt Signed-off-by: James Almer --- fftools/ffplay.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'fftools/ffplay.c') diff --git a/fftools/ffplay.c b/fftools/ffplay.c index e14c800b8f..0be1d90bf9 100644 --- a/fftools/ffplay.c +++ b/fftools/ffplay.c @@ -203,7 +203,7 @@ typedef struct Decoder { typedef struct VideoState { SDL_Thread *read_tid; - AVInputFormat *iformat; + const AVInputFormat *iformat; int abort_request; int force_refresh; int paused; @@ -308,7 +308,7 @@ typedef struct VideoState { } VideoState; /* options specified by the user */ -static AVInputFormat *file_iformat; +static const AVInputFormat *file_iformat; static const char *input_filename; static const char *window_title; static int default_width = 640; @@ -3075,7 +3075,8 @@ static int read_thread(void *arg) return 0; } -static VideoState *stream_open(const char *filename, AVInputFormat *iformat) +static VideoState *stream_open(const char *filename, + const AVInputFormat *iformat) { VideoState *is; -- cgit v1.2.3