mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avcodec/options: Remove always-true check
Every codec has a name. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
416cc012f6
commit
9b6ffcf0fd
@ -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…
x
Reference in New Issue
Block a user