avcodec/options: Remove always-true check

Every codec has a name.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
pull/362/head
Andreas Rheinhardt 4 years ago
parent 416cc012f6
commit 9b6ffcf0fd
  1. 2
      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";

Loading…
Cancel
Save