Hi!
I was trying to use non-PCM16 payloaded wave files (pcma, pcmu), and I
think I have found a bug on that part too. While it detects the subtype
corretly (6,7) in the AmAudioFileFormat::setSubtypeId method it fails to
do set the right codec, so it still handles input from the file as PCM16.
quickfix-patch attached. (based on sems 1.5.0)
--- AmAudioFile.cpp 2012-07-03 15:25:30.000000000 +0200
+++ AmAudioFile.cpp 2013-03-05 15:51:30.568718459 +0100
@@ -50,6 +50,8 @@
destroyCodec();
subtype = subtype_id;
p_subtype = 0;
+ p_subtype = getSubtype(); // FIX for setting the reader codec correctly for Wave files with PCMA/PCMU payload
+ codec_id = getCodecId();
codec = getCodec();
}
}
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev