Add some necessary casts in the wtv demuxer.

This reverts e8023dba, fixes ticket #3049.
Merge remote-tracking branch 'cehoyos/master'

* cehoyos/master:
  Add some necessary casts in the wtv demuxer.

Merged-by: Michael Niedermayer <michaelni@gmx.at>