diff --git a/libavformat/utils.c b/libavformat/utils.c index a4a78ba975..f022ebf098 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1684,7 +1684,7 @@ static int set_codec_from_probe_data(AVStream *st, AVProbeData *pd, int score) else if (strncmp(fmt->name, "ac3", 3) == 0) st->codec->codec_id = CODEC_ID_AC3; } - return fmt; + return !!fmt; } /* absolute maximum size we read until we abort */