Every codec has a name.
Unified · Split
| @@ -39,7 +39,7 @@ FF_ENABLE_DEPRECATION_WARNINGS · 38 unmodified lines | ||
| 39 | 39 | static const char* context_to_name(void* ptr) { |
| 40 | 40 | AVCodecContext *avc= ptr; |
| 41 | 41 | |
| 42 | − if(avc && avc->codec && avc->codec->name) | |
| 42 | + if (avc && avc->codec) | |
| 43 | 43 | return avc->codec->name; |
| 44 | 44 | else |
| 45 | 45 | return "NULL"; |