Signed-off-by: Josh de Kock <josh@itanimul.li>
if (s1->pb) {
int probe_buffer_size = 2048;
uint8_t *probe_buffer = av_realloc(NULL, probe_buffer_size + AVPROBE_PADDING_SIZE);
- AVInputFormat *fmt = NULL;
+ const AVInputFormat *fmt = NULL;
+ void *fmt_iter = NULL;
AVProbeData pd = { 0 };
if (!probe_buffer)
pd.buf_size = probe_buffer_size;
pd.filename = s1->url;
- while ((fmt = av_iformat_next(fmt))) {
+ while ((fmt = av_demuxer_iterate(&fmt_iter))) {
if (fmt->read_header != ff_img_read_header ||
!fmt->read_probe ||
(fmt->flags & AVFMT_NOFILE) ||