microsoft / FFmpegInterop

This is a code sample to make it easier to use FFmpeg in Windows applications.
Apache License 2.0
1.29k stars 310 forks source link

MSFT: 21032904 - Fix C4018 (signed/unsigned mismatch) warning in to_cotaskmem_string() #316

Closed brbeec closed 4 months ago

brbeec commented 4 months ago

Why is this change being made?

There's an x86 build break from #315 due to a C4018 (signed/unsigned mismatch) warning in to_cotaskmem_string().

What changed?

Fixed the warning by casting the int32_t to size_t.

How was the change tested?

Verified x86 build is successful.