Every codec has a name.
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -39,7 +39,7 @@ FF_ENABLE_DEPRECATION_WARNINGS · 38 unmodified lines | |||
| 39 | static const char* context_to_name(void* ptr) { | 39 | static 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 | else | 44 | else |
| 45 | return "NULL"; | 45 | return "NULL"; |