]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/options: Remove always-true check
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Thu, 1 Apr 2021 21:16:37 +0000 (23:16 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Mon, 5 Apr 2021 16:36:51 +0000 (18:36 +0200)
Every codec has a name.

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

index 58c7ce8d6242d990e4f2b9c70c4c76b3bf42bb71..b8d4a9faf614a8fa7350a07c024becc5e7104235 100644 (file)
@@ -39,7 +39,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
 static const char* context_to_name(void* ptr) {
     AVCodecContext *avc= ptr;
 
-    if(avc && avc->codec && avc->codec->name)
+    if (avc && avc->codec)
         return avc->codec->name;
     else
         return "NULL";