History

avcodec/options: Remove always-true check

Every codec has a name.

Andreas Rheinhardt committed 5 years ago

Commit 9b6ffcf1 parent 416cc011 file · +1 −1Browse files

Unified · Split

libavcodec/options.c+1−1
@@ -39,7 +39,7 @@ FF_ENABLE_DEPRECATION_WARNINGS · 38 unmodified lines
3939 static const char* context_to_name(void* ptr) {
4040 AVCodecContext *avc= ptr;
4141
42− if(avc && avc->codec && avc->codec->name)
42+ if (avc && avc->codec)
4343 return avc->codec->name;
4444 else
4545 return "NULL";

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t