summaryrefslogtreecommitdiff
path: root/libavcodec/options.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-01 23:16:37 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-05 18:36:51 +0200
commit9b6ffcf0fd61b61e53591c0ce215de2ce35a6982 (patch)
tree63a418377754079a96a18a1905768d932e0d4f64 /libavcodec/options.c
parent416cc012f6203c7162079ae5b14930ada9189ac3 (diff)
downloadffmpeg-9b6ffcf0fd61b61e53591c0ce215de2ce35a6982.tar.gz
avcodec/options: Remove always-true check
Every codec has a name. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/options.c')
-rw-r--r--libavcodec/options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/options.c b/libavcodec/options.c
index 58c7ce8d62..b8d4a9faf6 100644
--- a/libavcodec/options.c
+++ b/libavcodec/options.c
@@ -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";