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

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/options.c+1−1
@@ -39,7 +39,7 @@ FF_ENABLE_DEPRECATION_WARNINGS · 38 unmodified lines
39static const char* context_to_name(void* ptr) {39static const char* context_to_name(void* ptr) {
40 AVCodecContext *avc= ptr;40 AVCodecContext *avc= ptr;
41 41
42 if(avc && avc->codec && avc->codec->name)42 if (avc && avc->codec)
43 return avc->codec->name;43 return avc->codec->name;
44 else44 else
45 return "NULL";45 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