]> git.sesse.net Git - ffmpeg/blobdiff - fftools/ffplay.c
avformat: Constify the API wrt AV(In|Out)putFormat
[ffmpeg] / fftools / ffplay.c
index e14c800b8ff4b1f1bbf537ae76e1799d54eea953..0be1d90bf9cde1a6e1463e4544af87c0c6d2bf8f 100644 (file)
@@ -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;