h264: drop some ugly casts