Generalize bad handler_name detection
This commit is contained in:
parent
18ec8e99f8
commit
a7212ba2e3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user