(M)JPG HTTP output support

This commit is contained in:
Thulinma 2024-06-24 12:04:00 +02:00
parent ecd7e324dd
commit eed71b66d4
10 changed files with 92 additions and 300 deletions

View file

@ -381,6 +381,16 @@ namespace Mist{
trueCodec = "JPEG";
trueType = "video";
}
if (codec == "V_MS/VFW/FOURCC"){
tmpElem = E.findChild(EBML::EID_CODECPRIVATE);
if (tmpElem){
std::string bitmapheader = tmpElem.getValStringUntrimmed();
if (bitmapheader.substr(16, 4) == "MJPG"){
trueCodec = "JPEG";
trueType = "video";
}
}
}
if (codec == "A_PCM/FLOAT/IEEE"){
trueCodec = "FLOAT";
trueType = "audio";