Project

General

Profile

Actions

Support Request #7099

closed

EBPRODUCTSUPPORT-3676 ADTF2 Legacy Types use tInt32 instead of tUInt32 for storing the Major, Subtype and Flags

Added by hidden about 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Customer:
ELEKTROBIT
Department:
SUPPORT
Requester's Priority:
Normal
Support Level:
3rd Level
Resolution:
Product Issue Opened
Platform:
Topic:
FileLibrary::Common
FAQ Links:

Description

Supportanfrage

Wir benutzen hier die ADTF File Library 0.4.1.

In der Datei adtf_file_0.4.1/source/src/libraries/adtf_file/src/adtf2/adtf2_stream_type_deserializers.cpp,
werden in den Zeilen 99 und 210: major_type, sub_type und flags als tInt32 in den stream_type properties beschrieben.
e.g.: stream_type.setProperty("major", "tInt32", std::to_string(major_type));
stream_type.setProperty("sub", "tInt32", std::to_string(sub_type));
stream_type.setProperty("flags", "tInt32", std::to_string(flags));

Der Wert dazu: major_type(58, 128), sub_type(59, 129) und flags(60, 130) ist in den in klammerstehenden Zeilen als uint32_t deklariert.

Nachdem sie zum "stream_ type" hinzugefügt wurden sind sie auf tInt32 (also int32_t nach ADTF Documentation https://support.digitalwerk.net/adtf/v2/adtf_sdk_html_docs/types_8h.html#a261b79427c6fa0bcf57b71cd13ad0cc8) gesetzt.

Wenn wir uns auf den Typ welchen die adtf_file_library gibt verlassen würden, würde folgendes passieren:
cpp.sh/9czm3<http://cpp.sh/9czm3>
Ich hoffe das Beispiel erklärt das Problem besser.

In Zeile 222 werden major_type, sub_type und flags nicht zum "stream_ type" hinzugefügt wenn der "AdtfCoreMediaTypeAudioDeserializer" benutzt wurde.

Könnt ihr euch das bitte anschauen?

Lösung

Ticket ACORE-10007 erstellt

Actions

Also available in: Atom PDF