We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a51eca8 commit eb270c3Copy full SHA for eb270c3
src/AudioTools/AudioCodecs/ContainerM4A.h
@@ -106,6 +106,8 @@ class ContainerM4A : public ContainerDecoder {
106
return;
107
}
108
MultiDecoder& dec = *(self->p_decoder);
109
+ const char* current_mime = dec.selectedMime();
110
+
111
// select decoder based on mime type
112
if (!dec.selectDecoder(frame.mime)) {
113
const char* mime = frame.mime ? frame.mime : "(nullptr)";
@@ -126,6 +128,9 @@ class ContainerM4A : public ContainerDecoder {
126
128
127
129
// write encoded data to decoder
130
dec.write(frame.data, frame.size);
131
132
+ // restore the original mime type
133
+ dec.selectDecoder(current_mime)
134
135
};
136
0 commit comments