Merge pull request #913 from lioncash/movie-func Core: Break movie header validity checking into a function