Fix race on demuxer memory usage. Reuse previous calculation.

GetMemoryUsage() is called from the render thread, so access to
FFmpegDemuxer internals must be procted.  Adding locking everywhere
would be a big change, so simply cache the last value when a new
packet is added and protect it via a lock.

BUG=550375
TEST=all tests pass, no tsan issue.

Review URL: https://codereview.chromium.org/1419753007

Cr-Commit-Position: refs/heads/master@{#357464}
3 files changed