mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-02 20:35:37 +02:00
tools/probetest: replace the deprecated API
Signed-off-by: Zhong Li <zhongli_dev@126.com>
This commit is contained in:
parent
fcbfdeeabe
commit
f52e15df0f
@ -38,9 +38,10 @@ static const char *single_format;
|
|||||||
static void probe(AVProbeData *pd, int type, int p, int size)
|
static void probe(AVProbeData *pd, int type, int p, int size)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
AVInputFormat *fmt = NULL;
|
const AVInputFormat *fmt = NULL;
|
||||||
|
void *fmt_opaque = NULL;
|
||||||
|
|
||||||
while ((fmt = av_iformat_next(fmt))) {
|
while ((fmt = av_demuxer_iterate(&fmt_opaque))) {
|
||||||
if (fmt->flags & AVFMT_NOFILE)
|
if (fmt->flags & AVFMT_NOFILE)
|
||||||
continue;
|
continue;
|
||||||
if (fmt->read_probe &&
|
if (fmt->read_probe &&
|
||||||
@ -66,8 +67,9 @@ static void print_times(void)
|
|||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
AVInputFormat *fmt = NULL;
|
AVInputFormat *fmt = NULL;
|
||||||
|
void *fmt_opaque = NULL;
|
||||||
|
|
||||||
while ((fmt = av_iformat_next(fmt))) {
|
while ((fmt = av_demuxer_iterate(&fmt_opaque))) {
|
||||||
if (fmt->flags & AVFMT_NOFILE)
|
if (fmt->flags & AVFMT_NOFILE)
|
||||||
continue;
|
continue;
|
||||||
if (time_array[i] > 1000000) {
|
if (time_array[i] > 1000000) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user