1
0

Generalize bad handler_name detection

This commit is contained in:
Hendrik Leppkes 2024-07-01 10:05:45 +02:00
parent 18ec8e99f8
commit a7212ba2e3
Signed by: hendrik
GPG Key ID: 846079A4B0A7C1B5

View File

@ -257,11 +257,7 @@ const char *lavf_get_stream_title(const AVStream *pStream)
else if (AVDictionaryEntry *dictEntry = av_dict_get(pStream->metadata, "handler_name", nullptr, 0))
{
title = dictEntry->value;
if (strcmp(title, "GPAC ISO Video Handler") == 0 ||
strcmp(title, "GPAC ISO Audio Handler") == 0 ||
strcmp(title, "VideoHandler") == 0 ||
strcmp(title, "SoundHandler") == 0 ||
strcmp(title, "GPAC Streaming Text Handler") == 0)
if (title && strstr(title, "Handle") != nullptr)
title = nullptr;
}