Skip to content

OverflowException in AviWriter.WriteFileHeader #62

@schindlerma

Description

@schindlerma

There is a System.OverflowException in AviWriter.cs line 632 in the WriteFileHeader method when using larger values for FramesPerSecond, like 1000.

fileWriter.Write((uint)Decimal.Truncate(FramesPerSecond * streamsInfo.Sum(s => s.MaxChunkDataSize))); // max bytes per second

So, what is the correct way to calculate the byterate?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions