[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:
Rolf Bjarne Kvinge 2015-02-04 15:23:55 +01:00
Родитель 1515078b0c
Коммит 2c6f39909b
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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