Skip to content

Commit

Permalink
For some reason FrameCount is actually zero for single frame images..…
Browse files Browse the repository at this point in the history
…. interesting
  • Loading branch information
lay295 committed Sep 4, 2020
1 parent 1fbfc13 commit 03c4ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TwitchDownloaderCore/TwitchHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public static List<ThirdPartyEmote> GetThirdPartyEmotes(int streamerId, string c
{
MemoryStream ms = new MemoryStream(emoteData.data);
SKCodec codec = SKCodec.Create(ms);
ThirdPartyEmote newEmote = new ThirdPartyEmote(new List<SKBitmap>() { SKBitmap.Decode(emoteData.data) }, codec, emoteData.name, codec.FrameCount == 1 ? "png" : "gif", "", emoteData.imageScale, emoteData.data);
ThirdPartyEmote newEmote = new ThirdPartyEmote(new List<SKBitmap>() { SKBitmap.Decode(emoteData.data) }, codec, emoteData.name, codec.FrameCount == 0 ? "png" : "gif", "", emoteData.imageScale, emoteData.data);
returnList.Add(newEmote);
}
catch { }
Expand Down

0 comments on commit 03c4ade

Please sign in to comment.