зеркало из https://github.com/xamarin/ios-samples.git
[AudioConverterFileConverter] Don't complain about not getting any packet descriptions when none were read. Fixes bug #21940 comment 20.
https://bugzilla.xamarin.com/show_bug.cgi?id=21940#c20
This commit is contained in:
Родитель
1515078b0c
Коммит
2c6f39909b
|
@ -560,7 +560,7 @@ namespace AudioConverterFileConverter
|
|||
// modified for iOS7 (ReadPackets depricated)
|
||||
afio.PacketDescriptions = afio.SourceFile.ReadPacketData(false, afio.SrcFilePos, ref numberDataPackets, afio.SrcBuffer, ref outNumBytes);
|
||||
|
||||
if (afio.PacketDescriptions.Length == 0)
|
||||
if (afio.PacketDescriptions.Length == 0 && numberDataPackets > 0)
|
||||
throw new ApplicationException(afio.PacketDescriptions.ToString());
|
||||
|
||||
// advance input file packet position
|
||||
|
|
Загрузка…
Ссылка в новой задаче