fftools/ffprobe: Remove redundant check before avcodec_free_context()
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Sat, 15 May 2021 06:51:11 +0000 (08:51 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Tue, 8 Jun 2021 10:52:50 +0000 (12:52 +0200)
commitd29541c90aaa2e16d25411ba73f96576da99e0e1
treea6ed594bfd9d271735569908234546f0125ba061
parent3a5412b39eeb2f7af66acc985b55ccdb8bb9a953
fftools/ffprobe: Remove redundant check before avcodec_free_context()

Besides being unnecessary it is also safer: If the error for an
unrecognized option were triggered (which seems to be impossible right
now), it might be that the stream whose codecpar is accessed is NULL.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
fftools/ffprobe.c