avformat: Constify the API wrt AV(In|Out)putFormat

Also constify AVProbeData.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
Andreas Rheinhardt
2021-02-25 03:11:32 +01:00
committed by James Almer
parent f0c7fa2c48
commit 56450a0ee4
29 changed files with 84 additions and 78 deletions

View File

@@ -469,7 +469,7 @@ static void *fifo_consumer_thread(void *data)
return NULL;
}
static int fifo_mux_init(AVFormatContext *avf, ff_const59 AVOutputFormat *oformat,
static int fifo_mux_init(AVFormatContext *avf, const AVOutputFormat *oformat,
const char *filename)
{
FifoContext *fifo = avf->priv_data;
@@ -508,7 +508,7 @@ static int fifo_mux_init(AVFormatContext *avf, ff_const59 AVOutputFormat *oforma
static int fifo_init(AVFormatContext *avf)
{
FifoContext *fifo = avf->priv_data;
ff_const59 AVOutputFormat *oformat;
const AVOutputFormat *oformat;
int ret = 0;
if (fifo->recovery_wait_streamtime && !fifo->drop_pkts_on_overflow) {